Class: BasicTree::Kids
- Inherits:
-
Array
- Object
- Array
- BasicTree::Kids
- Defined in:
- lib/basic_tree.rb
Instance Method Summary collapse
Instance Method Details
#swap!(p1, p2) ⇒ Object
9 10 11 |
# File 'lib/basic_tree.rb', line 9 def swap!(p1, p2) self[p1], self[p2] = self[p2], self[p1] end |