Class: Nydp::OR_LEX_LEX

Inherits:
CondBase show all
Defined in:
lib/nydp/cond.rb

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

#n2r, #r2n

Constructor Details

This class inherits a constructor from Nydp::CondBase

Instance Method Details

#execute(vm) ⇒ Object



140
141
142
143
# File 'lib/nydp/cond.rb', line 140

def execute vm
  value = @condition.value vm.current_context
  vm.push_arg(!Nydp::NIL.is?(value) ? value : (@when_false.value vm.current_context))
end