Module: UniformResourceIdentifier::Parsable

Included in:
UniformResourceIdentifier, Authority, Domain, Host, Path, Query, Relative, UserInfo
Defined in:
lib/uniform_resource_identifier/parsable.rb

Instance Method Summary collapse

Instance Method Details

#parse(input) ⇒ Object



3
4
5
# File 'lib/uniform_resource_identifier/parsable.rb', line 3

def parse(input)
  input.is_a?(self) ? input : new(input)
end