Move NONE to mrblib/enum.rb

This commit is contained in:
KOBAYASHI Shuji
2019-02-01 16:02:01 +09:00
parent 32067b5005
commit 6da3cd5d22
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