Class: Maps::TreeNode2

Inherits:
TreeNode show all
Defined in:
lib/rookout/processor/paths/canopy/maps.rb

Instance Attribute Summary collapse

Attributes inherited from TreeNode

#elements, #offset, #text

Instance Method Summary collapse

Methods inherited from TreeNode

#each

Constructor Details

#initialize(text, offset, elements) ⇒ TreeNode2

Returns a new instance of TreeNode2.



32
33
34
35
36
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 32

def initialize(text, offset, elements)
  super
  @opt_ = elements[0]
  @atom = elements[1]
end

Instance Attribute Details

#atomObject (readonly)

Returns the value of attribute atom.



30
31
32
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 30

def atom
  @atom
end

#opt_Object (readonly)

Returns the value of attribute opt_.



30
31
32
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 30

def opt_
  @opt_
end