If the Request
specified to request the TSA certificate (Request#cert_requested = true), then this field contains the certificate of the timestamp authority.
Responsible for finding the nearest targets to the given comment within the context of the given encapsulating node.
Builds extensions. Valid types of extensions are extconf.rb files, configure scripts and rakefiles or mkrf_conf files.
We want to use the same linker that Ruby uses, so that the linker flags from mkmf work properly.
Return the 2 dependency objects that conflicted
Returns the path to the trusted certificate
Enumerates trusted certificates.
Loads the given certificate_file
Adds to array
all elements from each Array in other_arrays
; returns self
:
a = [0, 1] a.concat([2, 3], [4, 5]) # => [0, 1, 2, 3, 4, 5]
Returns a new Array containing only those elements from self
that are not found in any of the Arrays other_arrays
; items are compared using eql?
; order from self
is preserved:
[0, 1, 1, 2, 1, 1, 3, 1, 1].difference([1]) # => [0, 2, 3] [0, 1, 2, 3].difference([3, 0], [1, 3]) # => [2] [0, 1, 2].difference([4]) # => [0, 1, 2]
Returns a copy of self
if no arguments given.
Related: Array#-
.
Removes and returns trailing elements.
When no argument is given and self
is not empty, removes and returns the last element:
a = [:foo, 'bar', 2] a.pop # => 2 a # => [:foo, "bar"]
Returns nil
if the array is empty.
When a non-negative Integer
argument n
is given and is in range,
removes and returns the last n
elements in a new Array:
a = [:foo, 'bar', 2] a.pop(2) # => ["bar", 2]
If n
is positive and out of range, removes and returns all elements:
a = [:foo, 'bar', 2] a.pop(50) # => [:foo, "bar", 2]
Returns true
if the count of elements in self
is zero, false
otherwise.
Calls the block, if given, with each element of self
; returns a new Array containing those elements of self
for which the block returns a truthy value:
a = [:foo, 'bar', 2, :bam] a1 = a.select {|element| element.to_s.start_with?('b') } a1 # => ["bar", :bam]
Returns a new Enumerator
if no block given:
a = [:foo, 'bar', 2, :bam] a.select # => #<Enumerator: [:foo, "bar", 2, :bam]:select>
Calls the block, if given with each element of self
; removes from self
those elements for which the block returns false
or nil
.
Returns self
if any elements were removed:
a = [:foo, 'bar', 2, :bam] a.select! {|element| element.to_s.start_with?('b') } # => ["bar", :bam]
Returns nil
if no elements were removed.
Returns a new Enumerator
if no block given:
a = [:foo, 'bar', 2, :bam] a.select! # => #<Enumerator: [:foo, "bar", 2, :bam]:select!>