add hash with object

This commit is contained in:
Torsten Ruger
2014-08-15 17:18:15 +03:00
parent 16261f96b0
commit 0a7814a07b
2 changed files with 11 additions and 1 deletions

View File

@ -31,6 +31,12 @@ module Sof
add(a , level + 1)
end
end
if( object.is_a? Hash )
object.each do |a,b|
add(a , level + 1)
add(b , level + 1)
end
end
end
end
end