Temporarily turn off warnings. Intended for tests only.
Temporarily turn off warnings. Intended for tests only.
Signs in with the RubyGems API at sign_in_host
and sets the rubygems API key.
Wraps text
to wrap
characters and optionally indents by indent
characters
This code is based directly on the Text
gem implementation Returns a value representing the “cost” of transforming str1 into str2
Displays a warning statement
to the warning output location. Asks a question
if given.
Normalizes a request path. Raises an exception if the path cannot be normalized.
Normalizes a request path. Raises an exception if the path cannot be normalized.
Returns the mime type of filename
from the list in mime_tab
. If no mime type was found application/octet-stream is returned.
Returns the mime type of filename
from the list in mime_tab
. If no mime type was found application/octet-stream is returned.
Generates a random string of length len
Generates a random string of length len
Is this tar entry a symlink?
Rewinds to the beginning of the tar file entry
@return [String] a string suitable for debugging
Trap attempts to add methods to Numeric
objects. Always raises a TypeError
.
Numerics should be values; singleton_methods should not be added to them.
Same as Enumerator#with_index(0)
, i.e. there is no starting offset.
If no block is given, a new Enumerator
is returned that includes the index.