Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/grubby/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#to_absolute_uriURI

Constructs a URI from the String. Raises an exception if the String does not denote an absolute URI.

Returns:

Raises:

  • (RuntimeError)

    if the String does not denote an absolute URI



9
10
11
# File 'lib/grubby/core_ext/string.rb', line 9

def to_absolute_uri
  URI(self).to_absolute_uri
end