Class: RD::TextBlock
- Inherits:
-
BlockElement
- Object
- Element
- BlockElement
- RD::TextBlock
- Includes:
- ListItemComposable, NonterminalElement
- Defined in:
- lib/rd/block-element.rb,
lib/rd/rd-struct.rb
Overview
Include
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes included from NonterminalElement
Attributes inherited from Element
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #children ⇒ Object
-
#initialize ⇒ TextBlock
constructor
A new instance of TextBlock.
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
Constructor Details
#initialize ⇒ TextBlock
Returns a new instance of TextBlock.
74 75 76 77 |
# File 'lib/rd/block-element.rb', line 74 def initialize() super() @content = [] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
72 73 74 |
# File 'lib/rd/block-element.rb', line 72 def content @content end |
Instance Method Details
#accept(visitor) ⇒ Object
79 80 81 |
# File 'lib/rd/block-element.rb', line 79 def accept(visitor) visitor.visit_TextBlock(self) end |
#children ⇒ Object
83 84 85 |
# File 'lib/rd/block-element.rb', line 83 def children @content end |