Permalink
Browse files

Update lib/revolver.rb

Return a `dup` of the internal array, not the original.
  • Loading branch information...
1 parent 740b15f commit 6a8652b427509880a4c112a43272dcf65003e8b2 @citizen428 committed Sep 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/revolver.rb
View
@@ -34,7 +34,7 @@ def size
end
def to_a
- @array
+ @array.dup
end
def to_s

0 comments on commit 6a8652b

Please sign in to comment.