Finds the path to the Ruby executable
Performs the uninstall of the gem. This removes the spec, the Gem directory, and the cached .gem file.
Normalize the URI
by adding “http://” if it is missing.
See IO.unlink when path
is a file.
See Dir.unlink
when path
is a directory.
Sets userinfo, argument is string like ‘name:pass’
returns the userinfo, either as ‘user’ or ‘user:password’
Returns normalized URI
.
require 'uri' URI("HTTP://my.EXAMPLE.com").normalize #=> #<URI::HTTP http://my.example.com/>
Normalization here means:
scheme and host are converted to lowercase,
an empty path component is set to “/”.
Destructive version of normalize
uris
an Array of Strings
Attempts to parse and merge a set of URIs
uris
an Array of Strings
Attempts to parse and merge a set of URIs
Unmounts dir
Shortcut for logging an INFO
message
Will the logger output INFO
messages?
Formats arg
for the logger
If arg
is an Exception
, it will format the error message and the back trace.
If arg
responds to to_str, it will return it.
Otherwise it will return arg
.inspect.