Permalink
Browse files

minor: recursive should call itself

  • Loading branch information...
1 parent bff756d commit cfe61b73a8d00ddd0369e3b65f49d068ff662e2e @trans trans committed Apr 10, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/core/facets/array/recursive.rb
  2. +1 −1 lib/core/facets/hash/recursive.rb
View
2 lib/core/facets/array/recursive.rb
@@ -13,7 +13,7 @@ def recursive(opts={}, &block)
if block
a = inject([]) do |array, value|
if value.is_a?(Array)
- array << value.recursively(&block)
+ array << value.recursive(&block)
else
array << value
end
View
2 lib/core/facets/hash/recursive.rb
@@ -11,7 +11,7 @@ def recursive(opts={}, &block)
if block
h = inject({}) do |hash, (key, value)|
if value.is_a?(Hash)
- hash[key] = value.recursively(&block)
+ hash[key] = value.recursive(&block)
else
hash[key] = value
end

0 comments on commit cfe61b7

Please sign in to comment.