new(host = nil, user = nil, passwd = nil, acct = nil)public
Creates and returns a new FTP object. If a host is given, a connection is made. Additionally, if the user is given, the given user name, password, and (optionally) account are used to log in. See #login.
# File lib/net/ftp.rb, line 129 def initialize(host = nil, user = nil, passwd = nil, acct = nil) super() @binary = false @passive = false @debug_mode = false @resume = false if host connect(host) if user login(user, passwd, acct) end end end