Class | URI::FTP |
In: |
lib/uri/ftp.rb
|
Parent: | Generic |
DEFAULT_PORT | = | 21 | ||
COMPONENT | = | [ :scheme, :userinfo, :host, :port, :path, :typecode | ||
TYPECODE | = | ['a', 'i', 'd'].freeze | Typecode is, "a", "i" or "d". As for "a" the text, as for "i" binary, as for "d" the directory is displayed. "A" with the text, as for "i" being binary, is because the respective data type was called ASCII and IMAGE with the protocol of FTP. | |
TYPECODE_PREFIX | = | ';type='.freeze |
typecode | [R] |
Create a new URI::FTP object from ``generic’’ components with no check.
require 'uri' p ftp = URI.parse("ftp://ftp.ruby-lang.org/pub/ruby/;type=d") # => #<URI::FTP:0x201fad08 URL:ftp://ftp.ruby-lang.org/pub/ruby/;type=d> p ftp.typecode # => "d"