method

new

v2_2_9 - Show latest stable - Class: Net::FTP
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.