summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-02-06 20:18:45 +0900
committerGitHub <[email protected]>2019-02-06 20:18:45 +0900
commit1076bebde77922766d75a440f9dc3352c467f772 (patch)
tree2586c98bb5be745e0cfeb92c6adcf519b6c10c64
parentcb8bbd9e12526b9d0be673afb54ad1ba9270858a (diff)
parent6da3cd5d2296b9cd205772851f0a30e3af730c70 (diff)
downloadmruby-1076bebde77922766d75a440f9dc3352c467f772.tar.gz
mruby-1076bebde77922766d75a440f9dc3352c467f772.zip
Merge pull request #4256 from shuujii/move-none-to-mrblib-enum
Move `NONE` to `mrblib/enum.rb`
-rw-r--r--mrbgems/mruby-array-ext/mrblib/array.rb1
-rw-r--r--mrbgems/mruby-enum-ext/mrblib/enum.rb1
-rw-r--r--mrblib/enum.rb2
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