module TripletHandling
Constants
- TRIPLET_CLASSES
Public Class Methods
included(base)
click to toggle source
# File lib/uri/triplets.rb, line 106 def self.included(base) base.extend(TripletHandling) end
Public Instance Methods
default_triplet_type()
click to toggle source
# File lib/uri/triplets.rb, line 110 def default_triplet_type @default_triplet_type ||= "SSH" end
default_triplet_type=(value)
click to toggle source
# File lib/uri/triplets.rb, line 114 def default_triplet_type=(value) raise ArgumentError, "'#{value}' is not one of: #{TRIPLET_CLASSES.join(', ')}" unless TRIPLET_CLASSES.include?(value) @default_triplet_type = value end
parser()
click to toggle source
# File lib/uri/triplets.rb, line 120 def parser return URI::RFC3986_Parser if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.2.0") URI::Parser end