Permalink
Browse files

walks seem to work with updates

  • Loading branch information...
1 parent 9593c14 commit a672208562200a37b2777c923a68570cdba34ae9 @substack committed Oct 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 dnode/walk.rb
View
@@ -25,11 +25,11 @@ def _walk obj, cb
copy = []
value.each_with_index do |v,i|
@path.push i
- _walk(v, cb)
+ copy.push(_walk(v, cb))
@path.pop
end
return copy
- elsif [ Numeric, String, Proc ].select{ |x| value.is_a? x }.first.any?
+ elsif [ Numeric, String, Proc ].select{ |x| value.is_a? x }.any?
return value
else
# only serve up the object's "own" methods

0 comments on commit a672208

Please sign in to comment.