Class: RD::ListItem

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

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

#initializeListItem

Returns a new instance of ListItem.



25
26
27
# File 'lib/rd/list.rb', line 25

def initialize
  @content = []
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



23
24
25
# File 'lib/rd/list.rb', line 23

def content
  @content
end

Instance Method Details

#childrenObject



31
32
33
# File 'lib/rd/list.rb', line 31

def children
  @content
end