mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #4256 from shuujii/move-none-to-mrblib-enum
Move `NONE` to `mrblib/enum.rb`
This commit is contained in:
@@ -266,7 +266,6 @@ class Array
|
||||
self
|
||||
end
|
||||
|
||||
NONE=Object.new
|
||||
##
|
||||
# call-seq:
|
||||
# ary.fetch(index) -> obj
|
||||
|
||||
@@ -205,7 +205,6 @@ module Enumerable
|
||||
ary.collect{|e,i| orig[i]}
|
||||
end
|
||||
|
||||
NONE = Object.new
|
||||
##
|
||||
# call-seq:
|
||||
# enum.first -> obj or nil
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user