Class: Nydp::Cond_LEX_NVB_LIT
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
189 190 191 192 193 194 195 |
# File 'lib/nydp/cond.rb', line 189 def execute vm if (@condition.value vm.current_context) @when_true.execute vm else @when_false end end |