Class: Marker::ListNode

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

Direct Known Subclasses

Bulleted, Definition, Indented, Numbered

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#builderObject



161
162
163
164
165
166
167
# File 'lib/marker/lists.rb', line 161

def builder
  if content
    ListBuilder.new( type, ItemBuilder.new( type, content ) )
  else
    ListBuilder.new( type, ItemBuilder.new( type, item.builder ) )
  end
end