Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor: recursive should call itself

  • Loading branch information...
commit cfe61b73a8d00ddd0369e3b65f49d068ff662e2e 1 parent bff756d
@trans trans authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.