Class: OrgParse::WhitelineNode
Overview
Whiteline
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Attributes inherited from Node
#children, #kind, #parent, #value
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize ⇒ WhitelineNode
constructor
A new instance of WhitelineNode.
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 ⇒ WhitelineNode
Returns a new instance of WhitelineNode.
201 202 203 204 |
# File 'lib/org-parse/node.rb', line 201 def initialize super(:WHITELINE) @value = 1 end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
200 201 202 |
# File 'lib/org-parse/node.rb', line 200 def count @count end |
Instance Method Details
#increment ⇒ Object
205 206 207 |
# File 'lib/org-parse/node.rb', line 205 def increment @value += 1 end |