Method: Spider::Model::Tree::MapperMethods#tree_insert_node_first

Defined in:
lib/spiderfw/model/mixins/tree.rb

#tree_insert_node_first(tree_el, obj, parent) ⇒ Object



324
325
326
327
# File 'lib/spiderfw/model/mixins/tree.rb', line 324

def tree_insert_node_first(tree_el, obj, parent)
    obj.set(tree_el.attributes[:reverse], parent)
    tree_insert_node(tree_el, obj, parent.get(tree_el.attributes[:tree_left])+1)
end