Class: Koara::Ast::ListItem

Inherits:
BlockElement show all
Defined in:
lib/koara/ast/listitem.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #parent, #value

Instance Method Summary collapse

Methods inherited from BlockElement

#has_children, #is_first_child, #is_last_child, #is_single_child, #nested, #next

Methods inherited from Node

#add, #children_accept

Instance Attribute Details

#numberObject

Returns the value of attribute number.



7
8
9
# File 'lib/koara/ast/listitem.rb', line 7

def number
  @number
end

Instance Method Details

#accept(renderer) ⇒ Object



9
10
11
# File 'lib/koara/ast/listitem.rb', line 9

def accept(renderer)
  renderer.visit_list_item(self)
end