Gets X509v3 extensions as array of X509Ext objects
Sets X509_EXTENSIONs
Connect to IO
tcp
, with context of the current certificate configuration
Determines whether the response received was a Positive Intermediate reply (3xx reply code)
The version of this activation request’s specification
The version of the gem for this specification.
Returns, when successfully the only child-node
Set
the default safe level to level
. The default safe level is 0
See new for more information.
Build a single index for RubyGems 1.2 and newer
Builds indices for RubyGems 1.2 and newer. Handles full, latest, prerelease
The location of the default spec file for default gems.
Returns the default-handler, which is called when no handler for a method-name is found.
It is either a Proc
object or nil
.
Sets handler
as the default-handler, which is called when no handler for a method-name is found.
handler
is a code-block.
The default-handler is called with the (XML-RPC) method-name as first argument, and the other arguments are the parameters given by the client-call.
If no block is specified the default of XMLRPC::BasicServer
is used, which raises a XMLRPC::FaultException
saying “method missing”.
Remove custom handling of requests for files with suffix
Called after resolution ends (either successfully or with an error). By default, prints a newline.
@return [void]
Returns the number of elements in self
. May be zero.
[ 1, 2, 3, 4, 5 ].length #=> 5 [].length #=> 0
Deletes all items from self
that are equal to obj
.
Returns the last deleted item, or nil
if no matching item is found.
If the optional code block is given, the result of the block is returned if the item is not found. (To remove nil
elements and get an informative return value, use Array#compact!
)
a = [ "a", "b", "b", "b", "c" ] a.delete("b") #=> "b" a #=> ["a", "c"] a.delete("z") #=> nil a.delete("z") { "not found" } #=> "not found"
Shuffles elements in self
in place.
a = [ 1, 2, 3 ] #=> [1, 2, 3] a.shuffle! #=> [2, 3, 1] a #=> [2, 3, 1]
The optional rng
argument will be used as the random number generator.
a.shuffle!(random: Random.new(1)) #=> [1, 3, 2]