diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-08 16:08:53 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-08-08 16:08:53 +0900 |
| commit | 569c7dec5f884c3d1345dcc22b7ac0f568a06437 (patch) | |
| tree | ca78fe2ee6a8a94d41cf3dbd1f24a7d47e8e2472 | |
| parent | 0e45aa0066adebf313621429751d13c5e2ef63a6 (diff) | |
| download | mruby-569c7dec5f884c3d1345dcc22b7ac0f568a06437.tar.gz mruby-569c7dec5f884c3d1345dcc22b7ac0f568a06437.zip | |
move StopIteration to core; close #2518
| -rw-r--r-- | mrbgems/mruby-enumerator/mrblib/enumerator.rb | 4 | ||||
| -rw-r--r-- | mrblib/error.rb | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/mrbgems/mruby-enumerator/mrblib/enumerator.rb b/mrbgems/mruby-enumerator/mrblib/enumerator.rb index 58996adc8..c54959e91 100644 --- a/mrbgems/mruby-enumerator/mrblib/enumerator.rb +++ b/mrbgems/mruby-enumerator/mrblib/enumerator.rb @@ -549,10 +549,6 @@ class Enumerator end end -class StopIteration < IndexError - attr_accessor :result -end - module Kernel ## # call-seq: diff --git a/mrblib/error.rb b/mrblib/error.rb index a5b6b3223..d76dd9c56 100644 --- a/mrblib/error.rb +++ b/mrblib/error.rb @@ -66,3 +66,6 @@ end class NotImplementedError < ScriptError end +class StopIteration < IndexError + attr_accessor :result +end |
