Class: OrgParse::RootNode
Overview
Root
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
options.
-
#section_no ⇒ Object
Returns the value of attribute section_no.
Attributes inherited from Node
#children, #kind, #parent, #value
Instance Method Summary collapse
- #add(nodes) ⇒ Object
-
#initialize(opts) ⇒ RootNode
constructor
A new instance of RootNode.
Methods inherited from Node
#done, #done?, #example?, #html?, #inspect, #is_leaf?, #section_no_array, #set_example, #set_html, #set_src, #set_to_descendant, #set_verse, #src?, #verse?
Constructor Details
#initialize(opts) ⇒ RootNode
Returns a new instance of RootNode.
154 155 156 157 158 |
# File 'lib/org-parse/node.rb', line 154 def initialize(opts) super(:ROOT) @options = opts @section_no = "0" end |
Instance Attribute Details
#options ⇒ Object (readonly)
options
151 152 153 |
# File 'lib/org-parse/node.rb', line 151 def @options end |
#section_no ⇒ Object
Returns the value of attribute section_no.
152 153 154 |
# File 'lib/org-parse/node.rb', line 152 def section_no @section_no end |
Instance Method Details
#add(nodes) ⇒ Object
160 161 162 |
# File 'lib/org-parse/node.rb', line 160 def add(nodes) @children += nodes end |