General

Profile

jasiek (Jan Szumiec)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/02/2012

06:45 PM Ruby Feature #6824 (Rejected): StopIteration gets a source method
=begin
I'd like to add a method to StopIteration that returns an instance of the enumerator which triggered this exception. Eg:
enum = [].each
begin
enum.next
rescue StopIteration => ex
puts "same" if ex.source == e...
jasiek (Jan Szumiec)

Also available in: Atom