class Riddler::Elements::Heading

Public Class Methods

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

Public Instance Methods

text() click to toggle source
# File lib/riddler/elements/heading.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/heading.rb, line 13
def to_hash
  super.merge text: text
end