nimbus 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nimbus/tree.rb +1 -1
- metadata +1 -1
data/lib/nimbus/tree.rb
CHANGED
@@ -56,7 +56,7 @@ module Nimbus
|
|
56
56
|
def self.traverse(tree_structure, data)
|
57
57
|
return tree_structure if tree_structure.is_a? Numeric
|
58
58
|
raise Nimbus::TreeError, "Forest data has invalid structure. Please check your forest data (file)." if !(tree_structure.is_a?(Hash) && tree_structure.keys.size == 1)
|
59
|
-
return self.traverse( tree_structure.values.first[ data[tree_structure.keys.first
|
59
|
+
return self.traverse( tree_structure.values.first[ data[tree_structure.keys.first - 1].to_i], data)
|
60
60
|
end
|
61
61
|
|
62
62
|
|