The path where installed executables live
Install the provided default specs
Sets the content type in an HTTP
header. The type
should be a full HTTP
content type, e.g. “text/html”. The params
are an optional Hash
of parameters to add after the content type, e.g. {‘charset’ => ‘iso-8859-1’}
Set
the entity expansion limit. By default the limit is set to 10000.
Get the entity expansion limit. By default the limit is set to 10000.
Extract the first name=“value” pair from content. Works with single quotes according to the constant CONTENT_PATTERN
. Return a Hash
.
yields an instance of each installed XML
writer
yields an instance of each installed parser
Does this dependency require a prerelease?
Indicate if this NameTuple
is for a prerelease version.
Resolve the requested dependencies and return an Array of Specification objects to be activated.
A requirement is a prerelease if any of the versions inside of it are prereleases
A version is considered a prerelease if it contains a letter.
Proceed with resolution! Returns an array of ActivationRequest
objects.
Checks if URI
is relative
Returns the replacement string.
ec = Encoding::Converter.new("euc-jp", "us-ascii") p ec.replacement #=> "?" ec = Encoding::Converter.new("euc-jp", "utf-8") p ec.replacement #=> "\uFFFD"
Sets the replacement string.
ec = Encoding::Converter.new("utf-8", "us-ascii", :undef => :replace) ec.replacement = "<undef>" p ec.convert("a \u3042 b") #=> "a <undef> b"
Is code
a redirection status?
Is code
a redirection status?
Same as Array#each
, but traverses self
in reverse order.
a = [ "a", "b", "c" ] a.reverse_each {|x| print x, " " }
produces:
c b a
Returns true
if the named file is readable by the real user and group id of this process. See access(3).
When this module is prepended in another, Ruby calls prepend_features
in this module, passing it the receiving module in mod. Ruby’s default implementation is to overlay the constants, methods, and module variables of this module to mod if this module has not already been added to mod or one of its ancestors. See also Module#prepend
.