Sha256: 0b163f6d830429da182e32e401e675ac8968a58699e24e70204f34e271516b0b
Contents?: true
Size: 406 Bytes
Versions: 58
Compression:
Stored size: 406 Bytes
Contents
class LimitedURI extend Forwardable def_delegators :@uri, :scheme, :host, :port, :port=, :path, :query, :query=, :to_s def initialize(uri) @uri = uri end def ==(other) to_s == other.to_s end def self.parse(uri) return uri if uri.is_a? LimitedURI return new(uri) if uri.is_a? URI return new(URI.parse(uri)) if uri.is_a? String raise URI::InvalidURIError end end
Version data entries
58 entries across 58 versions & 7 rubygems