Method: Moped::Uri#initialize
- Defined in:
- lib/moped/uri.rb
#initialize(string) ⇒ Uri
Create the new uri from the provided string.
108 109 110 111 |
# File 'lib/moped/uri.rb', line 108 def initialize(string) @match = string.match(URI) invalid_uri!(string) unless @match end |