# File lib/ruote/util/tree.rb, line 116 def self.decompose_tree(t, pos='0', h={}) h[pos] = t[0, 2] t[2].each_with_index { |c, i| decompose_tree(c, "#{pos}_#{i}", h) } h end