Class: OrgParse::HeadlineNode

Inherits:
Node
  • Object
show all
Defined in:
lib/org-parse/node.rb

Overview

Headline を保持するクラス

Instance Attribute Summary collapse

Attributes inherited from Node

#children, #kind, #parent, #value

Instance Method Summary collapse

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_commentObject (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

#levelObject (readonly)

Returns the value of attribute level.



189
190
191
# File 'lib/org-parse/node.rb', line 189

def level
  @level
end