Class: Pricecut::Elements::Li
- Defined in:
- lib/pricecut/elements/li.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Element
#append_newline, #append_output, #initialize, #yield_children
Constructor Details
This class inherits a constructor from Pricecut::Elements::Element
Instance Method Details
#output! ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/pricecut/elements/li.rb', line 4 def output! case node.parent.name when "ol" p "1. "; yield_children; eol when "ul" p "- "; yield_children; eol end end |