summaryrefslogtreecommitdiff
path: root/lib/net/ftp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ftp.rb')
-rw-r--r--lib/net/ftp.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 7f18670f1b..d703f20733 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -507,12 +507,12 @@ module Net
# Retrieves +remotefile+ in whatever mode the session is set (text or
# binary). See #gettextfile and #getbinaryfile.
#
- def get(localfile, remotefile = File.basename(localfile),
+ def get(remotefile, localfile = File.basename(remotefile),
blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
unless @binary
- gettextfile(localfile, remotefile, &block)
+ gettextfile(remotefile, localfile, &block)
else
- getbinaryfile(localfile, remotefile, blocksize, &block)
+ getbinaryfile(remotefile, localfile, blocksize, &block)
end
end