diff options
| author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-30 01:56:45 +0000 |
|---|---|---|
| committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-30 01:56:45 +0000 |
| commit | e10aa8ac99ff1e0ec7018a612bbd355c92883fd0 (patch) | |
| tree | 92d9a9a356a14a8bddd4ba2fd40f913570d8528d /lib/net | |
| parent | 21d0046a0cc9ab6380cae6ccf1ac69cad775d0ae (diff) | |
| download | ruby-e10aa8ac99ff1e0ec7018a612bbd355c92883fd0.tar.gz ruby-e10aa8ac99ff1e0ec7018a612bbd355c92883fd0.tar.xz ruby-e10aa8ac99ff1e0ec7018a612bbd355c92883fd0.zip | |
* lib/net/ftp.rb (get): fix wrong argument name. Thanks to William
Webber.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
| -rw-r--r-- | lib/net/ftp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 7f18670f1..d703f2073 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 |
