Class: Marker::List

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

Instance Method Summary collapse

Methods inherited from RecursiveList

#r, #single?, #to_a

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#builderObject



143
144
145
146
147
148
149
# File 'lib/marker/lists.rb', line 143

def builder
  list_builder = ListBuilder.new(:root)
  to_a.each do |node|
    list_builder.add( node.builder )
  end
  list_builder
end

#to_html(options = {}) ⇒ Object



151
152
153
# File 'lib/marker/lists.rb', line 151

def to_html( options = {} )
  builder.to_html(options)
end

#to_s(options = {}) ⇒ Object



155
156
157
# File 'lib/marker/lists.rb', line 155

def to_s( options = {} )
  builder.to_s(options)
end