build(args)
public
Description
Creates a new URI::FTP object from components of URI::FTP with check. It is scheme, userinfo, host,
port, path and typecode. It provided by an Array
or a Hash. typecode is "a",
"i" or "d".
Show source
def self.build(args)
tmp = Util::make_components_hash(self, args)
if tmp[:typecode]
if tmp[:typecode].size == 1
tmp[:typecode] = TYPECODE_PREFIX + tmp[:typecode]
end
tmp[:path] << tmp[:typecode]
end
return super(tmp)
end