Class: OrgParse::VarNode

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

Overview

オプション変数

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(name, val) ⇒ VarNode

Returns a new instance of VarNode.



333
334
335
336
# File 'lib/org-parse/node.rb', line 333

def initialize(name, val)
  @name = val
  super(:VARIABLE, [], val)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



331
332
333
# File 'lib/org-parse/node.rb', line 331

def name
  @name
end