lib/rio/rl/ioi.rb in rio-0.3.6 vs lib/rio/rl/ioi.rb in rio-0.3.7
- old
+ new
@@ -54,11 +54,11 @@
attr_writer :ios
protected(:ios=)
def initialize(ios=nil)
@ios = ios
end
- def initialize_copy(*args)
- @ios = @ios.clone unless @ios.nil?
+ def initialize_copy(cp)
+ @ios = cp.ios.clone unless cp.ios.nil?
end
def open(*args)
@ios
end