Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/doubly_linked_list.rb
Instance Method Summary collapse
Instance Method Details
#move(from, to) ⇒ Object
2 3 4 |
# File 'lib/doubly_linked_list.rb', line 2 def move(from,to) insert(to, delete_at(from)) end |