move StopIteration to core; close #2518

parent 0e45aa00
......@@ -549,10 +549,6 @@ class Enumerator
end
end
class StopIteration < IndexError
attr_accessor :result
end
module Kernel
##
# call-seq:
......
......@@ -66,3 +66,6 @@ end
class NotImplementedError < ScriptError
end
class StopIteration < IndexError
attr_accessor :result
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment