From: Courtland Allen Date: 2010-10-07T11:14:51+09:00 Subject: rescuing a function --90e6ba539fee6d236e0491fd7505 Content-Type: text/plain; charset=ISO-8859-1 Hello, I've normally handled exceptions by "rescuing functions" in roughly this manner: def test_function(args) puts "blah blah blah" rescue Exception=>e puts "blah blah blah: #{args.inspect}" end However, I'm using a new IDE now that's giving me a warning about the reference to "args" in the rescue clause: "Local variable can be uninitialized." I figured that's impossible, since it's a required argument to the function. Should I just ignore the warning, or am I actually doing something wrong? I suppose the alternative would be: def test_function(args) begin puts "blah blah blah" rescue Exception=>e puts "blah blah blah: #{args.inspect}" end end -- *Courtland Allen* --90e6ba539fee6d236e0491fd7505--