Class: RD::List

Inherits:
BlockElement show all
Includes:
NonterminalElement
Defined in:
lib/rd2odt/rdtool/rd/list.rb

Direct Known Subclasses

DescList, EnumList, ItemList, MethodList

Instance Attribute Summary collapse

Attributes included from NonterminalElement

#temporary_document_structure

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from NonterminalElement

#add_child, #add_child_under_document_struct, #add_children, #add_children_under_document_struct, #add_children_without_document_struct, #build, #each_child, #each_element, #make_child, #push_to_children, #under_temporary_document_structure

Methods inherited from Element

#inspect, #tree

Constructor Details

#initializeList

Returns a new instance of List.



9
10
11
# File 'lib/rd2odt/rdtool/rd/list.rb', line 9

def initialize
  @items = []
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



7
8
9
# File 'lib/rd2odt/rdtool/rd/list.rb', line 7

def items
  @items
end

Instance Method Details

#childrenObject



15
16
17
# File 'lib/rd2odt/rdtool/rd/list.rb', line 15

def children
  @items
end