def add_to_tree(object)
      object.extend(Hashie::Extensions::DeepLocate)

      object[:current_scope] = @current_scope.last
      object[:nesting] = @nesting

      @tree << object
    end
def add_to_tree(object)
      object.extend(Hashie::Extensions::DeepLocate)

      object[:current_scope] = @current_scope.last
      object[:nesting] = @nesting

      @tree << object
    end
private