Class: Marker::List
- Inherits:
-
RecursiveList
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- RecursiveList
- Marker::List
- Defined in:
- lib/marker/lists.rb
Instance Method Summary collapse
Methods inherited from RecursiveList
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#to_html(options = {}) ⇒ Object
75 76 77 78 79 80 81 |
# File 'lib/marker/lists.rb', line 75 def to_html( = {} ) l = ListBuilder.new( [], nil ) to_a.each do |item| l << item.structure end l.to_html() end |
#to_s(options = {}) ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/marker/lists.rb', line 83 def to_s( = {} ) l = ListBuilder.new( [], nil ) to_a.each do |item| l << item.structure end l.to_s() end |