Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/kymera/array_exten.rb
Overview
This extends the array class to add copy functionality.
Instance Method Summary collapse
Instance Method Details
#copy ⇒ Object
8 9 10 |
# File 'lib/kymera/array_exten.rb', line 8 def copy self.map {|t| t} end |
#copy_to(array) ⇒ Object
3 4 5 6 |
# File 'lib/kymera/array_exten.rb', line 3 def copy_to(array) self.map {|t| array << t} array end |