Class: PseudoHiki::HtmlFormat::ListLeafNodeFormatter

Inherits:
PseudoHiki::HtmlFormat show all
Defined in:
lib/pseudohiki/htmlformat.rb

Constant Summary

Constants inherited from PseudoHiki::HtmlFormat

Formatter, ImgFormat

Instance Attribute Summary

Attributes inherited from PseudoHiki::HtmlFormat

#element_name, #format_class, #formatter, #generator

Instance Method Summary collapse

Methods inherited from PseudoHiki::HtmlFormat

create, default_options, format, get_plain, #initialize, #push_visited_results, setup_new_formatter, #split_into_parts, #visit, #visited_result

Constructor Details

This class inherits a constructor from PseudoHiki::HtmlFormat

Instance Method Details

#create_element(tree) ⇒ Object



100
101
102
103
104
# File 'lib/pseudohiki/htmlformat.rb', line 100

def create_element(tree)
  super(tree).tap do |elm|
    elm[ID] = tree.node_id.upcase if tree.node_id
  end
end