class Nydp::CondBase
Public Class Methods
new(cond, when_true, when_false)
click to toggle source
# File lib/nydp/cond.rb, line 75 def initialize cond, when_true, when_false @condition, @when_true, @when_false = cond, when_true, when_false end
Public Instance Methods
inspect()
click to toggle source
# File lib/nydp/cond.rb, line 83 def inspect ; "cond:#{@condition._nydp_inspect}:#{@when_true._nydp_inspect}:#{@when_false._nydp_inspect}" ; end
lexical_reach(n)
click to toggle source
# File lib/nydp/cond.rb, line 79 def lexical_reach n [@condition.lexical_reach(n), @when_true.lexical_reach(n), @when_false.lexical_reach(n)].max end
to_s()
click to toggle source
# File lib/nydp/cond.rb, line 84 def to_s ; "(cond #{@condition.to_s} #{@when_true.to_s} #{@when_false.to_s})" ; end