Method: IPAccess::Net::FTP.open
- Defined in:
- lib/ipaccess/ghost_doc/ghost_doc_net_ftp.rb
.open ⇒ Object
:call-seq:
open(host, acl) <tt>{|ftp| …}</tt>|<br />
open(host, user, passwd, acl) <tt>{|ftp| …}</tt>|<br />
open(host, user, passwd, account, acl) <tt>{|ftp| …}</tt>|
A synonym for new, but with a mandatory host parameter. If a block is given, it is passed the FTP object, which will be closed when the block finishes, or when an exception is raised.
It optionally sets an access set given as the last parameter. If the parameter is not given it defaults to IPAccess::Set.Global.
212 213 214 |
# File 'lib/ipaccess/ghost_doc/ghost_doc_net_ftp.rb', line 212 def self.open # Real code hidden. end |