Class: Maps::TreeNode4

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) ⇒ TreeNode4

Returns a new instance of TreeNode4.



51
52
53
54
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 51

def initialize(text, offset, elements)
  super
  @variable = elements[1]
end

Instance Attribute Details

#variableObject (readonly)

Returns the value of attribute variable.



49
50
51
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 49

def variable
  @variable
end