nimbus 0.6 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|