Source file is attached. I'm new to this forum so I don't know if there are options for code formatting.. but i have attached the source code. This program can be seen in action at the following link: http://codepad.org/QDrSdEGA I think this is a clever way to illustrate how exception handling is controlled in Ruby. Sorry there aren't any comments...
on 2012-11-30 01:32
on 2012-12-02 00:21
On Fri, Nov 30, 2012 at 5:43 AM, Nathan Mr. <email@example.com> wrote: > I updated the file and added comments. > > Here you go > > http://codepad.org/qVPc35hV All three codepad links came up 404. How clever is that? > Attachments: > http://www.ruby-forum.com/attachment/7914/can_happen.rb If you intend to provide good examples for people learning exception handling: as a learner I would prefer several examples which each _do one thing_. Also, there would have to be explanation of what is demonstrated - and meaningful names. Cheers robert