Permalink
Browse files

implemented to_a... i thought Enumerable had this already

  • Loading branch information...
1 parent 90777f9 commit 5aac2815539c7848c2093075ff67a15d094b7211 @coatl coatl committed Apr 14, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/sequence/weakrefset.rb
@@ -100,7 +100,11 @@ def each
}
self
end
-
+
+ def to_a
+ map{|x| x}
+ end
+
def == other
size==other.size or return
each{|x|

0 comments on commit 5aac281

Please sign in to comment.