lib/io_streams/stream.rb in iostreams-1.3.2 vs lib/io_streams/stream.rb in iostreams-1.3.3
- old
+ new
@@ -175,10 +175,10 @@
end
end
end
def copy_to(target, convert: true)
- target = IOStreams.path(target) unless target.is_a?(Stream)
+ target = IOStreams.new(target)
target.copy_from(self, convert: convert)
end
# Set/get the original file_name
def file_name(file_name = :none)