Class: WAS::Tree
- Inherits:
-
Hash
- Object
- Hash
- WAS::Tree
- Defined in:
- lib/was/tree.rb
Instance Method Summary collapse
Instance Method Details
#order(order_key = :deduction) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/was/tree.rb', line 3 def order(order_key = :deduction) self.dup.tap do |tree| return tree if tree[:with].nil? sort_with_by!(order_key, tree) end end |