Class: IdentifierNod

Inherits:
Object
  • Object
show all
Defined in:
lib/ast.rb

Instance Method Summary collapse

Constructor Details

#initialize(var, val) ⇒ IdentifierNod

Returns a new instance of IdentifierNod.



200
201
202
203
# File 'lib/ast.rb', line 200

def initialize(var, val)
  @var = var
  @val = val
end

Instance Method Details

#evaluateObject



205
206
207
# File 'lib/ast.rb', line 205

def evaluate() 
  return @val
end

#eweObject



209
210
211
# File 'lib/ast.rb', line 209

def ewe()
  return ""
end