Class: Skeem::SkmVariableReference
- Inherits:
-
SkmUnaryExpression
- Object
- Struct
- SkmElement
- SkmExpression
- SkmUnaryExpression
- Skeem::SkmVariableReference
- Defined in:
- lib/skeem/skm_unary_expression.rb
Overview
class
Instance Attribute Summary
Attributes inherited from SkmUnaryExpression
Attributes inherited from SkmElement
Instance Method Summary collapse
- #eqv?(other) ⇒ Boolean
- #evaluate(aRuntime) ⇒ Object
- #quasiquote(_runtime) ⇒ Object
-
#value ⇒ Object
Confusing! Value, here, means the value of the identifier (the variable's name).
Methods inherited from SkmUnaryExpression
Methods inherited from SkmElement
#accept, #boolean?, #bound!, #callable?, #char?, #complex?, #done!, #initialize, #inspect, #integer?, #list?, #null?, #number?, #pair?, #procedure?, #quoted!, #rational?, #real?, #skm_eq?, #skm_equal?, #string?, #symbol?, #unquoted!, #vector?, #verbatim?
Constructor Details
This class inherits a constructor from Skeem::SkmUnaryExpression
Instance Method Details
#eqv?(other) ⇒ Boolean
92 93 94 |
# File 'lib/skeem/skm_unary_expression.rb', line 92 def eqv?(other) child == other.child end |
#evaluate(aRuntime) ⇒ Object
96 97 98 99 100 |
# File 'lib/skeem/skm_unary_expression.rb', line 96 def evaluate(aRuntime) var_key = variable.evaluate(aRuntime) # $stderr.puts "Variable #{variable.inspect}" aRuntime.evaluate(var_key) end |
#quasiquote(_runtime) ⇒ Object
102 103 104 |
# File 'lib/skeem/skm_unary_expression.rb', line 102 def quasiquote(_runtime) self end |
#value ⇒ Object
Confusing! Value, here, means the value of the identifier (the variable's name).
108 109 110 |
# File 'lib/skeem/skm_unary_expression.rb', line 108 def value variable.value end |