A null NameTuple
, ie name=nil, version=0
Indicate if this NameTuple
is for a prerelease version.
A version is considered a prerelease if it contains a letter.
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Removes all sources from the SourceList
.
Deletes source
from the source list which may be a Gem::Source
or a URI
.
the spec of the gem to be uninstalled
the list of all such gems
Warning: this method modifies the list
parameter. Once it has uninstalled a gem, it is removed from that list.
Display an informational alert. Will ask question
if it is not nil.
Returns the request body.
Returns true
if stat terminated because of an uncaught signal.
Returns true
if stat generated a coredump when it terminated. Not available on all platforms.
Returns digest_obj.digest_length().
Updates the digest with the contents of a given file name and returns self.
The Fiddle::CompositeHandler
instance
Will raise an error if no handlers are open.
Decodes a BER- or DER-encoded value and creates an ASN1Data
instance. der may be a String
or any object that features a .to_der
method transforming it into a BER-/DER-encoded String+
der = File.binread('asn1data') asn1 = OpenSSL::ASN1.decode(der)
The current status of GC
profile mode.
Starts the GC
profiler.
Stops the GC
profiler.
Clears the GC
profiler data.
Returns a profile data report such as:
GC 1 invokes. Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC time(ms) 1 0.012 159240 212940 10647 0.00000000000001530000
Escape only the tags of certain HTML elements in string
.
Takes an element or elements or array of elements. Each element is specified by the name of the element, without angle brackets. This matches both the start and the end tag of that element. The attribute list of the open tag will also be escaped (for instance, the double-quotes surrounding attribute values).
print CGI::escapeElement('<BR><A HREF="url"></A>', "A", "IMG") # "<BR><A HREF="url"></A>" print CGI::escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"]) # "<BR><A HREF="url"></A>"
Removes a header field, specified by case-insensitive key.