Skip to content
Permalink
Browse files

Merge pull request #581 from kachick/implement-array-to_a

Implement Array#to_a
  • Loading branch information
alex committed Apr 9, 2013
2 parents 20b4b78 + 9d35378 commit 860ba3796c4f1d73c0a18ed3e81141bb2297c1ea
Showing with 4 additions and 1 deletion.
  1. +4 −0 lib-topaz/array.rb
  2. +0 −1 spec/tags/core/array/to_a_tags.txt
@@ -363,4 +363,8 @@ def shuffle
arr.shuffle!
arr
end

def to_a
self.instance_of?(Array) ? self : Array.new(self)
end
end

This file was deleted.

0 comments on commit 860ba37

Please sign in to comment.
You can’t perform that action at this time.