Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/lista.rb
Instance Method Summary collapse
Instance Method Details
#swap(a, b) ⇒ Object
10 11 12 |
# File 'lib/lista.rb', line 10 def swap(a,b) self[a], self[b] = self[b], self[a] end |