Module: URI
- Defined in:
- lib/grubby/core_ext/uri.rb
Instance Method Summary collapse
-
#to_absolute_uri ⇒ self
Raises an exception if the URI is not
absolute?.
Instance Method Details
#to_absolute_uri ⇒ self
Raises an exception if the URI is not absolute?.
7 8 9 10 |
# File 'lib/grubby/core_ext/uri.rb', line 7 def to_absolute_uri raise "URI is not absolute: #{self}" unless self.absolute? self end |