Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change Enumerable freezer to handle #each yielding multiple args

  • Loading branch information...
commit 88da453c0f9e2c909e16c6276af4fb26f20a2317 1 parent 279c827
@dkubb authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/ice_nine/freezer/enumerable.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.