Class: Iba::LocalVariableExpression
- Inherits:
-
DisplayableExpression
- Object
- BaseExpression
- DisplayableExpression
- Iba::LocalVariableExpression
- Defined in:
- lib/iba.rb
Instance Method Summary collapse
- #_evaluate(bnd) ⇒ Object
- #_to_s ⇒ Object
-
#initialize(lvar_name) ⇒ LocalVariableExpression
constructor
A new instance of LocalVariableExpression.
Methods inherited from DisplayableExpression
Methods inherited from BaseExpression
#!=, #==, #_display, #_display_subexpressions, #_wrap, #coerce, #method_missing, #respond_to_missing?, #to_s
Constructor Details
#initialize(lvar_name) ⇒ LocalVariableExpression
Returns a new instance of LocalVariableExpression.
170 171 172 173 |
# File 'lib/iba.rb', line 170 def initialize(lvar_name) super() @_lvar_name = lvar_name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Iba::BaseExpression
Instance Method Details
#_evaluate(bnd) ⇒ Object
179 180 181 |
# File 'lib/iba.rb', line 179 def _evaluate(bnd) bnd.local_variable_get @_lvar_name end |
#_to_s ⇒ Object
175 176 177 |
# File 'lib/iba.rb', line 175 def _to_s @_lvar_name.to_s end |