On Sep 25, 2008, at 05:21 , Jim Weirich wrote: > On Sep 25, 2008, at 3:13 AM, Ryan Davis wrote: >> On Sep 24, 2008, at 23:20 , Jim Weirich wrote: >> >>> fail RuntimeError.new("Oops") >> >> def fail msg = nil >> msg ||= "Epic Fail!" >> assert false, msg >> end >> >> you're passing a RuntimeError instance as the message. >> >> fail "Oops" >> >> is the right way to do that. > > Hmmmm... It seems bad form to change the semantics of a kernel > defined method. (http://ruby-doc.org/core/classes/Kernel.html#M005954) omg... I never even knew that existed. I've never seen any code that ever used it. heh. you learn something new every day. :P