summaryrefslogtreecommitdiffhomepage
path: root/mrblib/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrblib/array.rb')
-rw-r--r--mrblib/array.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/mrblib/array.rb b/mrblib/array.rb
index f74da332c..6b4f74b96 100644
--- a/mrblib/array.rb
+++ b/mrblib/array.rb
@@ -4,7 +4,6 @@
#
# ISO 15.2.12
class Array
-
##
# Calls the given block for each element of +self+
# and pass the respective element.
@@ -193,13 +192,6 @@ class Array
return block.call if ret.nil? && block
ret
end
-end
-
-##
-# Array is enumerable
-class Array
- # ISO 15.2.12.3
- include Enumerable
##
# Sort all elements and replace +self+ with these
@@ -277,4 +269,9 @@ class Array
self
end
alias entries to_a
+
+ ##
+ # Array is enumerable
+ # ISO 15.2.12.3
+ include Enumerable
end