Type:
Class
Constants:
DEFAULT_PORT : 21

A Default port of 21 for URI::FTP

COMPONENT : [ :scheme, :userinfo, :host, :port, :path, :typecode ].freeze

An Array of the available components for URI::FTP

TYPECODE : ['a', 'i', 'd'].freeze

Typecode is âaâ, âiâ or âdâ.

  • âaâ indicates a text file (the FTP command was ASCII)

  • âiâ indicates a binary file (FTP command IMAGE)

  • âdâ indicates the contents of a directory should be displayed

TYPECODE_PREFIX : ';type='.freeze

Typecode prefix

1
';type='

FTP URI syntax is defined by RFC1738 section 3.2.

This class will be redesigned because of difference of implementations; the structure of its path. draft-hoffman-ftp-uri-04 is a draft but it is a good summary about the de facto spec. tools.ietf.org/html/draft-hoffman-ftp-uri-04

build
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

build(args) Class Public methods Description Creates

2025-01-10 15:47:30
typecode=
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

typecode=(typecode) Instance Public methods Args v

2025-01-10 15:47:30
path
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

path() Instance Public methods Returns the path from an

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

new(*arg) Class Public methods Description Creates

2025-01-10 15:47:30
set_path
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

set_path(v) Instance Protected methods

2025-01-10 15:47:30
set_typecode
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

set_typecode(v) Instance Protected methods private setter for the typecode v

2025-01-10 15:47:30
to_s
  • References/Ruby on Rails/Ruby/Classes/URI/URI::FTP

to_s() Instance Public methods

2025-01-10 15:47:30