Class: Wood::Nodes::Variable::Reference

Inherits:
Node
  • Object
show all
Defined in:
lib/wood/nodes/variable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#varObject

Returns the value of attribute var.



21
22
23
# File 'lib/wood/nodes/variable.rb', line 21

def var
  @var
end

Class Method Details

.[](options) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/wood/nodes/variable.rb', line 9

def self.[](options)
  case options
  when Hash
    new(options)
  else
    new(name: options)
  end
end