From: "Iñaki Baz Castillo" Date: 2009-03-03T09:28:59+09:00 Subject: Using inline "rescue" with error class Hi, instead of: ---------- begin IPAddr.new(value) rescue ArgumentError puts "Invalid IP" end ---------- I would like to just write: IPAddr.new(value) rescue ArgumentError puts "Invalid IP" Unfortunatelly it doesn't work when the rescue action occurs: ------------ Invalid IP NoMethodError: undefined method `ArgumentError' for main:Object ------------ Do I miss some way to set the error class when using inline rescue? Thanks a lot. -- Iñaki Baz Castillo