Class: URI::Gopher

Inherits:
HTTP
  • Object
show all
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.

%i[scheme host port path].freeze

Instance Method Summary collapse

Instance Method Details

#item_typeObject



25
26
27
28
29
# File 'lib/uri/gopher.rb', line 25

def item_type
  return @item_type if defined? @item_type

  @item_type = extract_gopher_path_elements[0]
end

#selectorObject



19
20
21
22
23
# File 'lib/uri/gopher.rb', line 19

def selector
  return @selector if defined? @selector

  @selector = extract_gopher_path_elements[1]
end