Method: Cod::IOPair#initialize_copy
- Defined in:
- lib/cod/iopair.rb
#initialize_copy(other) ⇒ Object
Performs a deep copy of the structure.
12 13 14 15 16 |
# File 'lib/cod/iopair.rb', line 12 def initialize_copy(other) super self.r = other.r.dup if other.r self.w = other.w.dup if other.w end |