diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-02-01 16:02:01 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-02-01 16:02:01 +0900 |
| commit | 6da3cd5d2296b9cd205772851f0a30e3af730c70 (patch) | |
| tree | 74907da11a23c48cc1c1ffffb1d38676a68fe88a | |
| parent | 32067b500592d10a6458cdb273c42a5ebdb4fbf9 (diff) | |
| download | mruby-6da3cd5d2296b9cd205772851f0a30e3af730c70.tar.gz mruby-6da3cd5d2296b9cd205772851f0a30e3af730c70.zip | |
Move `NONE` to `mrblib/enum.rb`
| -rw-r--r-- | mrbgems/mruby-array-ext/mrblib/array.rb | 1 | ||||
| -rw-r--r-- | mrbgems/mruby-enum-ext/mrblib/enum.rb | 1 | ||||
| -rw-r--r-- | mrblib/enum.rb | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb index 6096696cb..387bd6c90 100644 --- a/mrbgems/mruby-array-ext/mrblib/array.rb +++ b/mrbgems/mruby-array-ext/mrblib/array.rb @@ -266,7 +266,6 @@ class Array self end - NONE=Object.new ## # call-seq: # ary.fetch(index) -> obj diff --git a/mrbgems/mruby-enum-ext/mrblib/enum.rb b/mrbgems/mruby-enum-ext/mrblib/enum.rb index fedf8b1ae..99b9cddba 100644 --- a/mrbgems/mruby-enum-ext/mrblib/enum.rb +++ b/mrbgems/mruby-enum-ext/mrblib/enum.rb @@ -205,7 +205,6 @@ module Enumerable ary.collect{|e,i| orig[i]} end - NONE = Object.new ## # call-seq: # enum.first -> obj or nil diff --git a/mrblib/enum.rb b/mrblib/enum.rb index a97a26f97..9bd74e1c4 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -13,6 +13,8 @@ # @ISO 15.3.2 module Enumerable + NONE = Object.new + ## # Call the given block for each element # which is yield by +each+. Return false |
