Class: OrgParse::HeadlineNode
Overview
Headline を保持するクラス
Instance Attribute Summary collapse
-
#is_comment ⇒ Object
readonly
Returns the value of attribute is_comment.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
Attributes inherited from Node
#children, #kind, #parent, #value
Instance Method Summary collapse
-
#initialize(children, level) ⇒ HeadlineNode
constructor
A new instance of HeadlineNode.
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(children, level) ⇒ HeadlineNode
Returns a new instance of HeadlineNode.
191 192 193 194 195 |
# File 'lib/org-parse/node.rb', line 191 def initialize(children, level) @is_comment = false @level = level.size super(:HEADLINE, children) end |
Instance Attribute Details
#is_comment ⇒ Object (readonly)
Returns the value of attribute is_comment.
189 190 191 |
# File 'lib/org-parse/node.rb', line 189 def is_comment @is_comment end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
189 190 191 |
# File 'lib/org-parse/node.rb', line 189 def level @level end |