class Riddler::Elements::Copy
Public Class Methods
type()
click to toggle source
# File lib/riddler/elements/copy.rb, line 5 def self.type "copy" end
Public Instance Methods
text()
click to toggle source
# File lib/riddler/elements/copy.rb, line 9 def text context.render definition["text"] end
to_hash()
click to toggle source
Calls superclass method
Riddler::Element#to_hash
# File lib/riddler/elements/copy.rb, line 13 def to_hash super.merge text: text end