Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/monkey_patches/array.rb
Instance Method Summary collapse
Instance Method Details
#swap!(a, b) ⇒ Object
2 3 4 5 |
# File 'lib/monkey_patches/array.rb', line 2 def swap!(a,b) self[a], self[b] = self[b], self[a] self end |