Class: Citrus::Var

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

Instance Method Summary collapse

Instance Method Details

#codegen(g) ⇒ Object



217
218
219
220
221
222
223
224
225
226
227
# File 'lib/citrus/nodes.rb', line 217

def codegen(g)
  begin
    g.load(value)
  rescue NoMethodError
    begin
      g.call(value)
    rescue NoMethodError
      Citrus.error(NameError.new(value))
    end
  end
end