module ArticleJSON::Export::Common::HTML::Elements::Heading

Public Instance Methods

export() click to toggle source

Generate the heading element with the right text @return [Nokogiri::XML::NodeSet]

# File lib/article_json/export/common/html/elements/heading.rb, line 9
def export
  create_element(tag_name, @element.content)
end

Private Instance Methods

tag_name() click to toggle source
# File lib/article_json/export/common/html/elements/heading.rb, line 15
def tag_name
  "h#{@element.level}".to_sym
end