Method: Kernel#unles

Defined in:
lib/carat-dev/conditional/conditionals.rb

#unles(*exp_blks) ⇒ Object



73
74
75
76
77
78
79
80
81
# File 'lib/carat-dev/conditional/conditionals.rb', line 73

def unles( *exp_blks )
  r = nil
  exp_blks.each_with_index{ |e,i| 
    if i % 2 == 0
      r = e.false?(&exp_blks[i+1]); break if ! e
    end
  }
  r
end