Class: IdentifierNod
- Inherits:
-
Object
- Object
- IdentifierNod
- Defined in:
- lib/ast.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
- #ewe ⇒ Object
-
#initialize(var, val) ⇒ IdentifierNod
constructor
A new instance of IdentifierNod.
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
#evaluate ⇒ Object
205 206 207 |
# File 'lib/ast.rb', line 205 def evaluate() return @val end |
#ewe ⇒ Object
209 210 211 |
# File 'lib/ast.rb', line 209 def ewe() return "" end |