Class: EOr

Inherits:
Object
  • Object
show all
Defined in:
lib/eor.rb,
lib/eor/version.rb

Constant Summary collapse

EOR_VERSION =
'0.1.0'

Instance Method Summary collapse

Instance Method Details

#eor(procs, args = []) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/eor.rb', line 12

def eor procs, args=[]
  begin
    return value_of procs.shift, args
  rescue Exception => e
    return eor(procs, args.push(e))
  end
end