From: Perry Smith Date: 2012-07-20T05:22:07+09:00 Subject: [ruby-core:46558] Re: [ruby-trunk - Feature #6739] One-line rescue statement should support specifying an exception class --Apple-Mail=_E1159967-134D-4208-97C5-0DED51A3748F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Jul 19, 2012, at 3:45 AM, Quintus (Marvin G=FClker) wrote: > File.read("myfile.txt") rescue Errno::ENOENT then puts "No file = there" I like "when" and "then" File.read("myfile.txt") rescue when Errno::ENOENT then puts "No file = there" --Apple-Mail=_E1159967-134D-4208-97C5-0DED51A3748F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1

I like "when" and = "then"

File.read("myfile.txt") rescue when = Errno::ENOENT then puts "No file = there"

= --Apple-Mail=_E1159967-134D-4208-97C5-0DED51A3748F--