Class: Marker::List

Inherits:
RecursiveList show all
Defined in:
lib/marker/lists.rb

Instance Method Summary collapse

Methods inherited from RecursiveList

#r, #to_a

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#to_html(options = {}) ⇒ Object



75
76
77
78
79
80
81
# File 'lib/marker/lists.rb', line 75

def to_html( options = {} )
  l = ListBuilder.new( [], nil )
  to_a.each do |item|
    l << item.structure
  end
  l.to_html(options)
end

#to_s(options = {}) ⇒ Object



83
84
85
86
87
88
89
# File 'lib/marker/lists.rb', line 83

def to_s( options = {} )
  l = ListBuilder.new( [], nil )
  to_a.each do |item|
    l << item.structure
  end
  l.to_s(options)
end