Merge pull request #4256 from shuujii/move-none-to-mrblib-enum

Move `NONE` to `mrblib/enum.rb`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-02-06 20:18:45 +09:00
committed by GitHub
3 changed files with 2 additions and 2 deletions
-1
View File
@@ -266,7 +266,6 @@ class Array
self
end
NONE=Object.new
##
# call-seq:
# ary.fetch(index) -> obj
-1
View File
@@ -205,7 +205,6 @@ module Enumerable
ary.collect{|e,i| orig[i]}
end
NONE = Object.new
##
# call-seq:
# enum.first -> obj or nil
+2
View File
@@ -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