Class: Iba::LocalVariableExpression

Inherits:
DisplayableExpression show all
Defined in:
lib/iba.rb

Instance Method Summary collapse

Methods inherited from DisplayableExpression

#_display

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_sObject



175
176
177
# File 'lib/iba.rb', line 175

def _to_s
  @_lvar_name.to_s
end