Class: URI::Gopher
- Inherits:
-
HTTP
- Object
- HTTP
- URI::Gopher
- Defined in:
- lib/uri/gopher.rb
Overview
The syntax of Gopher URIs is defined in the Gopher URI Scheme specification.
Constant Summary collapse
- DEFAULT_PORT =
A Default port of 70 for URI::Gopher.
70
- COMPONENT =
An Array of the available components for URI::Gopher.
[:scheme, :host, :port, :path].freeze
Instance Method Summary collapse
Instance Method Details
#item_type ⇒ Object
24 25 26 27 |
# File 'lib/uri/gopher.rb', line 24 def item_type return @item_type if defined? @item_type @item_type = extract_gopher_path_elements[0] end |
#selector ⇒ Object
19 20 21 22 |
# File 'lib/uri/gopher.rb', line 19 def selector return @selector if defined? @selector @selector = extract_gopher_path_elements[1] end |