class Object
Public Instance Methods
trythese(*procs)
click to toggle source
class Rational
def inspect to_s end
end
# File lib/rprb.rb, line 19 def trythese(*procs) if procs.length == 0 raise "Ahhg!" else begin procs[0].call rescue Exception => error #puts "ERROR: " + error trythese(*procs[1..-1]) end end end