summaryrefslogtreecommitdiffhomepage
path: root/mrblib/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mrblib/array.rb')
-rw-r--r--mrblib/array.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/mrblib/array.rb b/mrblib/array.rb
index 6535d6d83..8586fbc39 100644
--- a/mrblib/array.rb
+++ b/mrblib/array.rb
@@ -12,7 +12,7 @@ class Array
# ISO 15.2.12.5.10
# def each(&block)
# return to_enum :each unless block
-
+ #
# idx = 0
# while idx < length
# block.call(self[idx])
@@ -268,4 +268,8 @@ class Array
def sort(&block)
self.dup.sort!(&block)
end
+
+ def to_a
+ self
+ end
end