Class: Nydp::Cond_LEX_NVB_LEX
Instance Method Summary collapse
Methods inherited from CondBase
#initialize, #inspect, #lexical_reach, #to_s
Methods included from Helper
#cons, #list, #literal?, #pair?, #sig, #sym, #sym?
Methods included from Converter
Constructor Details
This class inherits a constructor from Nydp::CondBase
Instance Method Details
#execute(vm) ⇒ Object
179 180 181 182 183 184 185 |
# File 'lib/nydp/cond.rb', line 179 def execute vm if (@condition.value vm.current_context) @when_true.execute vm else @when_false.value(vm.current_context) end end |