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
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.
Deprecated, used YAML::DBM#key
instead.
Note: YAML::DBM#index
makes warning from internal of ::DBM#index. It says ‘DBM#index is deprecated; use DBM#key
’, but DBM#key
behaves not same as DBM#index
.
Returns a Hash
(not a DBM
database) created by using each value in the database as a key, with the corresponding key as its value.
Note that all values in the hash will be Strings, but the keys will be actual objects.
Override the inspection method.
system("false") p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"
Returns a printable version of ec
ec = Encoding::Converter.new("iso-8859-1", "utf-8") puts ec.inspect #=> #<Encoding::Converter: ISO-8859-1 to UTF-8>
Finishes the converter. It returns the last part of the converted string.
ec = Encoding::Converter.new("utf-8", "iso-2022-jp") p ec.convert("\u3042") #=> "\e$B$\"" p ec.finish #=> "\e(B"
Finishes the digest and returns the resulting hash value.
This method is overridden by each implementation subclass and often made private, because some of those subclasses may leave internal data uninitialized. Do not call this method from outside. Use digest!()
instead, which ensures that internal data be reset for security reasons.
Creates a printable version of the digest object.