Class: URI::Finger
- Inherits:
-
HTTP
- Object
- HTTP
- URI::Finger
- Defined in:
- lib/uri/finger.rb
Overview
The syntax of Finger URIs is defined in the Finger specification, section 2.3.
Constant Summary collapse
- DEFAULT_PORT =
A Default port of 79 for URI::Finger.
79
- COMPONENT =
An Array of the available components for URI::Finger.
[:scheme, :userinfo, :host, :port, :path].freeze
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/uri/finger.rb', line 19 def name # Utilitary method to extract a name to query, either from the userinfo # part or from the path. return @user if @user return '' unless @path # Remove leading / @path[1..] || '' end |