Permalink
Browse files

Change Enumerable freezer to handle #each yielding multiple args

  • Loading branch information...
dkubb committed Aug 23, 2012
1 parent 279c827 commit 88da453c0f9e2c909e16c6276af4fb26f20a2317
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/ice_nine/freezer/enumerable.rb
@@ -20,7 +20,9 @@ class Enumerable < Object
#
# @api public
def self.deep_freeze(enumerable)
- enumerable.each { |entry| IceNine.deep_freeze(entry) }
+ enumerable.each do |*args|
+ args.each { |arg| IceNine.deep_freeze(arg) }
+ end
super enumerable
end

0 comments on commit 88da453

Please sign in to comment.