Flowdock

686 results found for "array"

new

(REXML::Element, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array of strings being the names of the elements to respect whitespace for. Defaults to : all . :compress_whitespace the value can be : all or an array of strings being the names of the elements to ignore whitespace on. Overrides : respect_whitespace . : ignore_whitespace_nodes the value can be : all or an array

checkbox_group

(CGI::HtmlExtension, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array has the same effect. Each value can also be specified as a three-element array. The first element is the VALUE attribute; the second is the label; and the third is a boolean specifying whether this checkbox is CHECKED. Each value can also be specified as a two-element

build

(URI::MailTo, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Array or Hash . If an Array is used, the components must be supplied as [to, headers]. If a Hash is used, the keys are the component names preceded by colons. The headers can be supplied as a pre-encoded string, such as “subject=subscribe&cc=address”, or as an Array

zip

(Enumerable, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

arrays, where n is one more than the count of arguments. The length of the resulting sequence will be enum#size. If the size of any argument is less than enum#size, nil values are supplied. If a block is given, it is invoked for each output array, otherwise an array

sample

(Array, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

array. The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements. If the array is empty the first form returns nil and the second form returns an empty array

rassoc

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Searches through the array whose elements are also arrays. Compares obj with the second element of each contained array using obj.==. Returns the first contained array that matches obj . See also Array#assoc.

bsearch

(Array, >= v2_1_10 <= v2_6_3)
Importance_2_sm

array which meets the given condition in O(log n) where n is the size of the array. You can use this method in two modes: a find-minimum mode and a find-any mode. In either case, the elements of the array must be monotone (or sorted) with respect

fill

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array) to obj . A start of nil is equivalent to zero. A length of nil is equivalent to the length of the array. The last three forms fill the array with the value of the given block, which is passed the absolute index of each element to be filled. Negative

[]

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_4_sm

array (-1 is the last element). For start and range cases the starting index is just before an element. Additionally, an empty array is returned when the starting index for an element range is at the end of the array. Returns nil if the index (or starting index ) are out of range

slice

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array (-1 is the last element). For start and range cases the starting index is just before an element. Additionally, an empty array is returned when the starting index for an element range is at the end of the array. Returns nil if the index (or starting index ) are out of range

shift

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Returns nil if the array is empty. If a number n is given, returns an array of the first n elements (or less) just like array. slice! (0, n) does. With ary containing only the remainder elements, not including what was shifted to new_ary . See also Array#unshift for the opposite effect.

flatten

(Hash, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

array that is a one-dimensional flattening of this hash . That is, for every key or value that is an array, extract its elements into the new array. Unlike Array#flatten, this method does not flatten recursively by default . The optional level argument determines the level of recursion to flatten

glob

(Dir, >= v1_8_6_287 <= v2_6_3)
Importance_5_sm

Array of pattern strings, and returns an array containing the matching filenames. If a block is given, calls the block once for each matching filename, passing the filename as a parameter to the block. The optional base keyword argument specifies the base directory for interpreting relative pathnames instead of the current

[]=

(CSV::Table, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

Array of values (which will inherit the table’s headers ()) or a CSV::Row . Columns may be set to a single value, which is copied to each row of the column, or an Array of values. Arrays of values are assigned to rows top to bottom in row major order

fetch

(Net::IMAP, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array of those. The number is a message sequence number, where -1 represents a ‘*’ for use in range notation like 100..-1 being interpreted as ‘100:*’. Beware that the exclude_end? property of a Range object is ignored, and the contents of a range are independent of the order of the range

new

(GetoptLong, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

array of arrays. Each sub-array contains any number of String option names which carry the same meaning, and one of the following flags: GetoptLong::NO_ARGUMENT Option does not take an argument. GetoptLong::REQUIRED_ARGUMENT Option always takes an argument. GetoptLong::OPTIONAL_ARGUMENT Option may or may not take

Forwardable

Importance_3_sm

array @records . You could provide the lookup method #record_number(), which simply calls #[] on the @records array, like this: Notes Be advised, RDoc will not detect delegated methods. forwardable.rb provides single-method delegation via the def_delegator and def_delegators methods. For full-class delegation via DelegateClass, see delegate .rb .

doc/syntax/literals.rdoc

Importance_5_sm

Arrays Hashes Ranges Regular Expressions Procs Booleans and nil nil and false are both false values. nil is sometimes used to indicate “no value” or “unknown” but evaluates to false in conditional expressions. true is a true value. All objects except nil and false evaluate to a true value in conditional

OpenSSL::ASN1

Importance_3_sm

Array . ASN1::Set and ASN1::Sequence The most common constructive encodings are SETs and SEQUENCEs, which is why there are two sub-classes of Constructive representing each of them. Primitive This is the super class of all primitive values. Primitive itself is not used when parsing ASN.1 data, all values

first

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Returns the first element, or the first n elements, of the array. If the array is empty, the first form returns nil, and the second form returns an empty array. See also Array#last for the opposite effect.

CSV

Importance_3_sm

Arrays or Rows of Strings in the Encoding of your data. This is accomplished by transcoding the parser itself into your Encoding . Some transcoding must take place, of course, to accomplish this multiencoding support. For example, :col_sep, :row_sep, and :quote_char must be transcoded to match your data

flatten

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Returns a new array that is a one-dimensional flattening of self (recursively). That is, for every element that is an array, extract its elements into the new array. The optional level argument determines the level of recursion to flatten .

pop

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_3_sm

Removes the last element from self and returns it, or nil if the array is empty. If a number n is given, returns an array of the last n elements (or less) just like array. slice! (-n, n) does. See also Array#push for the opposite effect.

Gem::Security

Importance_5_sm

restrictions Might be better to store the certificate chain as a PKCS#7 or PKCS#12 file, instead of an array embedded in the metadata. Flexible signature and key algorithms, not hard-coded to RSA and SHA1. Original author Paul Duncan <pabs@pablotron.org> http://pablotron.org/ frozen_string_literal: true

&

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Set Intersection — Returns a new array containing unique elements common to the two arrays. The order is preserved from the original array. It compares elements using their #hash and #eql? methods for efficiency. See also Array#uniq.

lex

(Ripper, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

Tokenizes the Ruby program and returns an array of an array, which is formatted like [[lineno, column], type, token, state].

expect

(IO, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

array is returned when the pattern is obtained from the IO . The first element of the array is the entire string obtained from the IO until the pattern matches, followed by elements indicating which the pattern which matched to the anchor in the regular expression. The optional timeout parameter defines

level_notifier=

(IRB::Notifier::CompositeNotifier, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

notifier is set to the notifier at the index value in the #notifiers Array . If no notifier exists at the index value in the #notifiers Array, an ErrUndefinedNotifier exception is raised. An ErrUnrecognizedLevel exception is raised if the given value is not found in the existing #notifiers Array, or an instance of AbstractNotifier

try_convert

(Array, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Tries to convert obj into an array, using to_ary method. Returns the converted array or nil if obj cannot be converted for any reason. This method can be used to check if an argument is an array.

new

(DRb::DRbSSLSocket::SSLConfig, >= v1_8_6_287 <= v2_6_3)
Importance_3_sm

Array of certificates that will used as ClientCAs in the SSL Context :SSLCACertificatePath A path to the directory of CA certificates. The certificates must be in PEM format. :SSLCACertificateFile A path to a CA certificate file, in PEM format. :SSLTmpDhCallback A DH callback. See OpenSSL::SSL::SSLContext .tmp_dh_callback