instance method
copy_to
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
copy_to( port )
No documentation comment.
Parameters
-
portreq
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb, line 117
def copy_to( port )
if FilePort === port
copy_file @filename, port.filename
else
File.open(@filename) {|r|
port.wopen {|w|
while s = r.sysread(4096)
w.write << s
end
} }
end
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/port.rb line 117
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::FilePort