Flowdock

686 results found for "array"

divmod

(Numeric, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Returns an array containing the quotient and modulus obtained by dividing num by numeric . If q, r = x. divmod (y), then

new

(JSON::Ext::Generator::State, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

array_nl: a string that is put at the end of a JSON array (default: ”), allow_nan: true if NaN, Infinity, and -Infinity should be generated, otherwise an exception is thrown, if these values are encountered. This options defaults to false. buffer_initial_length: sets the initial length of the generator

values_at

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns an array containing the elements in self corresponding to the given selector (s). The selectors may be either integer indices or ranges. See also Array#select.

values_at

(Struct, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns the struct member values for each selector as an Array . A selector may be either an Integer offset or a Range of offsets (as in Array#values_at).

build

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

attributes, scope, filter, and extensions . The components should be provided either as an Array, or as a Hash with keys formed by preceding the component names with a colon. If an Array is used, the components must be passed in the order [host, port, dn, attributes, scope, filter, extensions]. Example:

build

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

Array, or as a Hash with keys formed by preceding the component names with a colon. If an Array is used, the components must be passed in the order [userinfo, host, port, path, query, fragment]. Example: Currently, if passed userinfo components this method generates invalid HTTP URIs as per RFC 1738.

whitespace

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

whitespace has any value The context has : respect_whitespace set to : all or an array containing the name of this element, and : compress_whitespace isn’t set to : all or an array containing the name of this element. The evaluation is tested against expanded_name, and so is namespace sensitive.

Vector

Importance_2_sm

array) Vector.elements(array, copy = true) Vector.basis(size: n, index: k) Vector.zero(n) To access elements: #[](i) To enumerate the elements: #each2(v) #collect2(v) Properties of vectors: #angle_with(v) Vector.independent?(*vs) #independent? (*vs) #zero? Vector arithmetic: #*(x) “is matrix or number” #+(v) #-(v) #/(v) #+@ #-@ Vector functions: #inner_product(v), dot (v) #cross

add_attributes

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

Add multiple attributes to this element. hash is either a hash, or array of arrays

read

(CSV, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Array of Arrays. Pass the path to the file and any options CSV::new() understands. This method also understands an additional :encoding parameter that you can use to specify the Encoding of the data in the file to be read . You must provide this unless your data is in Encoding

puts

(ARGF, >= v1_9_3_125 <= v2_6_3)
Importance_2_sm

array argument, writes each element on a new line. Each given object that isn’t a string or array will be converted by calling its to_s method. If called without arguments, outputs a single newline. Note that puts always uses newlines and is not affected by the output record

puts

(IO, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array argument, writes each element on a new line. Each given object that isn’t a string or array will be converted by calling its to_s method. If called without arguments, outputs a single newline. Note that puts always uses newlines and is not affected by the output record

slice_when

(Enumerable, >= v2_2_9 <= v2_6_3)
Importance_2_sm

where the block returns true. The block is called the length of the receiver enumerator minus one. The result enumerator yields the chunked elements as an array. So each method can be called as follows: Enumerable#chunk_while does the same, except splitting when the block returns false instead of true.

prefixes

(REXML::Attributes, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns an array of Strings containing all of the prefixes declared by this set of # attributes. The array does not include the default namespace declaration, if one exists.

OpenSSL::ASN1::ASN1Data

Importance_3_sm

with tag equal to 1 tag_class equal to :CONTEXT_SPECIFIC value equal to an Array with one single element, an instance of OpenSSL::ASN1::Integer, i.e. the inner element is the non-tagged primitive value, and the tagging is represented in the outer ASN1Data Example - Decoding an implicitly tagged INTEGER

new

(WEBrick::HTTPServer, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

array of access logs. See WEBrick::AccessLog :BindAddress Local address for the server to bind to :DocumentRoot Root path to serve files from :DocumentRootOptions Options for the default HTTPServlet::FileHandler : HTTPVersion The HTTP version of this server :Port Port to listen on :RequestCallback Called with a request and response before

search

(IRB::JobManager, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Array . When an instance of Irb is given, it will return the irb session associated with key . If given an instance of Thread, it will return the associated thread key using Object#=== on the jobs Array . Otherwise returns the irb session with the same top-level binding as the given

sign

(OpenSSL::OCSP::Request, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Array of additional certificates which are included in the request in addition to the signer certificate. Note that if certs is nil or not given, flag OpenSSL::OCSP::NOCERTS is enabled. Pass an empty array to include only the signer certificate. flags is a bitwise OR of the following constants

mul

(OpenSSL::PKey::EC::Point, >= v2_1_10 <= v2_6_3)
Importance_1_sm

calculates bns[0] * point + bns[1] * points[0] + ... + bns[-1] * points[-1] + bn2 * G . bn2 may be omitted. bns must be an array of OpenSSL::BN . points must be an array of OpenSSL::PKey::EC::Point . Please note that points[0] is not multiplied by bns[0], but bns[1] .

<<

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Append—Pushes the given object on to the end of this array. This expression returns the array itself, so several appends may be chained together.

new

(OpenSSL::X509::Name, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Creates a new Name . A name may be created from a DER encoded string der, an Array representing a distinguished_name or a distinguished_name along with a template . See add_entry for a description of the distinguished_name Array’s contents

_setproperty

(WIN32OLE, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Runs the early binding method to set property. The 1st argument specifies dispatch ID, the 2nd argument specifies the array of arguments, the 3rd argument specifies the array of the type of arguments.

caller_locations

(Kernel, >= v2_1_10 <= v2_6_3)
Importance_1_sm

array containing backtrace location objects. See Thread::Backtrace::Location for more information. The optional start parameter determines the number of initial stack entries to omit from the top of the stack. A second optional length parameter can be used to limit how many entries are returned from the stack. Returns

coerce

(Numeric, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

type as num, returns an array [numeric, num]. Otherwise, returns an array with both numeric and num represented as Float objects. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator.

digits

(Integer, >= v2_4_6 <= v2_6_3)
Importance_1_sm

Returns the digits of int's place-value representation with radix base (default: 10). The digits are returned as an array with the least significant digit as the first array element. base must be greater than or equal to 2.

assoc

(Hash, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Searches through the hash comparing obj with the key using ==. Returns the key-value pair (two elements array) or nil if no match is found. See Array#assoc .

compact!

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Removes nil elements from the array. Returns nil if no changes were made, otherwise returns the array.

array_nl

(JSON::Ext::Generator::State, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

This string is put at the end of a line that holds a JSON array.

array_nl=

(JSON::Ext::Generator::State, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

This string is put at the end of a line that holds a JSON array.

_getproperty

(WIN32OLE, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Runs the early binding method to get property. The 1st argument specifies dispatch ID, the 2nd argument specifies the array of arguments, the 3rd argument specifies the array of the type of arguments.