class String

Public Instance Methods

to_absolute_uri() click to toggle source

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

@return [URI] @raise [RuntimeError]

if the String does not denote an absolute URI
# File lib/grubby/core_ext/string.rb, line 9
def to_absolute_uri
  URI(self).to_absolute_uri
end