Method: Lolita::Navigation::Tree#before
- Defined in:
- lib/lolita/navigation/tree.rb
#before(given_branch, *other_branch) ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/lolita/navigation/tree.rb', line 85 def before(given_branch,*other_branch) index=get_branch_index(given_branch) adding_branch(*other_branch) do |fixed_branch| put_in_branches(fixed_branch,index-1) end end |