Flowdock

686 results found for "array"

repeated_permutation

(Array, >= v1_9_2_180 <= v2_6_3)
Importance_2_sm

When invoked with a block, yield all repeated permutations of length n of the elements of the array, then return the array itself. The implementation makes no guarantees about the order in which the repeated permutations are yielded. If no block is given, an Enumerator is returned instead. Examples:

sort_dependencies

(Gem::Resolver::Molinillo::SpecificationProvider, >= v2_4_6 <= v2_6_3)
Importance_1_sm

Sort dependencies so that the ones that are easiest to resolve are first. Easiest to resolve is (usually) defined by: @param [{ String => Array}] conflicts @return [ Array] a sorted copy of `dependencies`.

[]=

(WIN32OLE_VARIANT, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Set the element of WIN32OLE_VARIANT object(OLE array ) to val. This method is available only when the variant type of WIN32OLE_VARIANT object is VT_ARRAY. REMARK:

[]

(WIN32OLE_VARIANT, >= v1_9_1_378 <= v2_6_3)
Importance_1_sm

Returns the element of WIN32OLE_VARIANT object(OLE array ). This method is available only when the variant type of WIN32OLE_VARIANT object is VT_ARRAY. REMARK:

tsort

(TSort, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns a topologically sorted array of nodes. The array is sorted from children to parents, i.e. the first element has no child and the last node has no parent. If there is a cycle, TSort::Cyclic is raised.

[]

(MatchData, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

MatchData acts as an array, and may be accessed using the normal array indexing techniques. mtch[0] is equivalent to the special variable $&, and returns the entire matched string . mtch[1], mtch[2], and so on return the values of the matched backreferences (portions of the pattern between parentheses).

listen

(REXML::Parsers::SAX2Parser, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

Array, Block Symbol can be one of: :start_element, :end_element, :start_prefix_mapping, :end_prefix_mapping, :characters, :processing_instruction, :doctype, :attlistdecl, :elementdecl, :entitydecl, :notationdecl, :cdata, :xmldecl, :comment There is an additional symbol that can be listened for: :progress. This will be called for every event generated, passing in the current

build

(URI::FTP, >= 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, typecode If the path supplied is absolute, it will be escaped in order to make it absolute

to_a

(MatchData, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns the array of matches.

new

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

default. It’s not possible to use this option in conjunction with the create_additions option. create_additions: If set to false, the Parser doesn’t create additions even if a matching class and create_id was found. This option defaults to false. object_class: Defaults to Hash array_class: Defaults to Array

doc/security.rdoc

Importance_4_sm

arrays, hashes, numbers and nil. If you need to deserialize other classes, you should handle this manually. Never deserialize to a user specified class. YAML YAML is a popular human readable data serialization format used by many Ruby programs for configuration and database persistence of Ruby object trees. Similar to Marshal

store

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

array of numbers, or a Range object. Each number is a message sequence number. attr is the name of a data item to store: ‘FLAGS’ will replace the message’s flag list with the provided one, ‘+FLAGS’ will add the provided flags, and ‘-FLAGS’ will remove them. flags is a list

insert

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

with the given index . Negative indices count backwards from the end of the array, where -1 is the last element. If a negative index is used, the given values will be inserted after that element, so using an index of -1 will insert the values at the end of the array.

parse_ctype

(Fiddle::CParser, >= v2_1_10 <= v2_6_3)
Importance_2_sm

type ty, returns the corresponding Fiddle constant. ty can also accept an Array of C type Strings, and will be returned in a corresponding Array . If Hash tymap is provided, ty is expected to be the key, and the value will be the C type to be looked up. Example:

sendmsg

(BasicSocket, >= v1_9_2_180 <= v2_6_3)
Importance_2_sm

data. The element of controls should be Socket::AncillaryData or 3-elements array. The 3-element array should contains cmsg_level, cmsg_type and data. The return value, numbytes_sent is an integer which is the number of bytes sent. sendmsg can be used to implement send_io as follows:

grep

(Enumerable, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Returns an array of every element in enum for which Pattern === element. If the optional block is supplied, each matching element is passed to it, and the block’s result is stored in the output array.

new

(Resolv::DNS, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

number of nameserver address. The value of :nameserver should be an address string or an array of address strings. :nameserver => ‘8.8.8.8’ :nameserver => [‘8.8.8.8’, ‘8.8.4.4’] The value of :nameserver_port should be an array of pair of nameserver address and port number. :nameserver_port => [[‘8.8.8.8’, 53], [‘8.8.4.4’, 53]] Example:

WEBrick::Config

Importance_0_sm

Array of languages allowed for accept-language. There is no default :DirectoryCallback Allows preprocessing of directory requests. There is no default callback. :FancyIndexing If true, show an index for directories. The default is true. :FileCallback Allows preprocessing of file requests. There is no default callback. :HandlerCallback Allows preprocessing of requests

convert_to_array

(Matrix::ConversionHelper, >= v1_9_2_180 <= v2_5_5)
Importance_1_sm

Converts the obj to an Array . If copy is set to true a copy of obj will be made if necessary.

rotate

(Array, >= v1_9_2_180 <= v2_6_3)
Importance_1_sm

Returns a new array by rotating self so that the element at count is the first element of the new array. If count is negative then it rotates in the opposite direction, starting from the end of self where -1 is the last element.

convpath

(Encoding::Converter, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

array of conversions. Each element of the array is a pair of encodings or a string. A pair means an encoding conversion. A string means a decorator. In the above example, [#<Encoding:ISO-8859-1>, #<Encoding:UTF-8>] means a converter from ISO-8859-1 to UTF-8. “crlf

Coverage

Importance_2_sm

load Ruby source file Coverage.result will return a hash that contains filename as key and coverage array as value. A coverage array gives, for each line, the number of line execution by the interpreter. A nil value means coverage is disabled for this line (lines like else and end ). Example

resolve

(Gem::Resolver::Molinillo::Resolver, >= v2_4_6 <= v2_6_3)
Importance_1_sm

Resolves the requested dependencies into a { DependencyGraph}, locking to the base dependency graph (if specified) @param [ Array] requested an array of ‘requested’ dependencies that the

used_modules

(Module, >= v2_4_6 <= v2_6_3)
Importance_1_sm

Returns an array of all modules used in the current scope. The ordering of modules in the resulting array is not defined.

getnameinfo

(Socket, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

Socket.sockaddr_in(80, “127.0.0.1”) 3-elements array such as [“AF_INET”, 80, “127.0.0.1”] 4-elements array such as [“AF_INET”, 80, ignored, “127.0.0.1”] flags should be bitwise OR of Socket::NI_* constants. Note: The last form is compatible with IPSocket#addr and IPSocket#peeraddr. If Addrinfo object is preferred, use Addrinfo#getnameinfo.

decode_www_form

(URI, >= v1_9_2_180 <= v2_6_3)
Importance_2_sm

Decode URL-encoded form data from given str . This decodes application/x-www-form-urlencoded data and returns array of key-value array. This refers http://url.spec.whatwg.org/#concept-urlencoded-parser , so this supports only &-separator, don’t support ;-separator. See URI .decode_www_form_component, URI.encode_www_form

to_a

(Hash, >= v1_8_6_287 <= v2_6_3)
Importance_1_sm

Converts hsh to a nested array of [ key, value ] arrays.

filter

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

Given an array of nodes it filters the array based on the path. The result is that when this method returns, the array will contain elements which match the path

parse

(JSON, >= v1_9_1_378 <= v2_6_3)
Importance_2_sm

keys) in a JSON object. Otherwise strings are returned. Strings are the default. create_additions: If set to false, the Parser doesn’t create additions even if a matching class and create_id was found. This option defaults to false. object_class: Defaults to Hash array_class: Defaults to Array

fetch

(Array, >= v1_8_6_287 <= v2_6_3)
Importance_2_sm

outside of the array bounds. This error can be prevented by supplying a second argument, which will act as a default value. Alternatively, if a block is given it will only be executed when an invalid index is referenced. Negative values of index count from the end of the array.