class Riddler::Elements::Text

Public Class Methods

type() click to toggle source
# File lib/riddler/elements/text.rb, line 4
def self.type
  "text"
end

Public Instance Methods

text() click to toggle source
# File lib/riddler/elements/text.rb, line 8
def text
  context.render definition["text"]
end
to_hash() click to toggle source
Calls superclass method Riddler::Element#to_hash
# File lib/riddler/elements/text.rb, line 12
def to_hash
  super.merge text: text
end