686 results found for "array"
new
(CSV::Table, >= v1_9_1_378 <= v2_6_3)Construct a new CSV::Table from array_of_rows, which are expected to be CSV::Row objects. All rows are assumed to have the same headers . A CSV::Table object supports the following Array methods through delegation: empty?() length() size()
reject!
(Array, >= v1_8_6_287 <= v2_6_3)Deletes every element of self for which the block evaluates to true, if no changes were made returns nil . The array may not be changed instantly every time the block is called. See also Enumerable#reject and Array#delete_if. If no block is given, an Enumerator is returned instead.
[]
(CSV::Table, >= v1_9_1_378 <= v2_6_3)In the default mixed mode, this method returns rows for index access and columns for header access. You can force the index association by first calling by_col! () or by_row! (). Columns are returned as an Array of values. Altering that Array has no effect on the table.
sum
(Array, >= v2_4_6 <= v2_6_3)Returns the sum of elements. For example, [e1, e2, e3]. sum returns init + e1 + e2 + e3. If a block is given, the block is applied to each element before addition. If ary is empty, it returns init . Array#sum method may not respect method redefinition of “+” methods such as Integer#+.
drop
(Array, >= v1_8_7_72 <= v2_6_3)Drops first n elements from ary and returns the rest of the elements in an array. If a negative number is given, raises an ArgumentError . See also Array#take
thread_list_all
(DEBUGGER__, >= v1_8_6_287 <= v2_6_3)Prints all threads in @ thread_list to @ stdout . Returns a sorted array of values from the @ thread_list hash. While in the debugger you can list all of the threads with: DEBUGGER__.thread_list_all See DEBUGGER__ for more usage.
tag_start
(REXML::StreamListener, >= v1_8_6_287 <= v2_6_3)Called when a tag is encountered. @p name the tag name @p attrs an array of arrays of attribute/value pairs, suitable for use with assoc or rassoc. IE, <tag attr1=“value1” attr2=“value2”> will result in tag_start ( “tag”, # [[“attr1”,“value1”],[“attr2”,“value2”]])
mails
(Net::POP3, >= v1_8_6_287 <= v2_6_3)Returns an array of Net::POPMail objects, representing all the messages on the server. This array is renewed when the session restarts; otherwise, it is fetched from the server the first time this method is called (directly or indirectly) and cached. This method raises a POPError if an error occurs.
exec
(Process, >= v1_8_7_72 <= v2_6_3)array at the beginning of the command, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In order to execute the command, one of the exec (2) system calls are used, so the running
exec
(Kernel, >= v1_8_6_287 <= v2_6_3)array at the beginning of the command, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In order to execute the command, one of the exec (2) system calls are used, so the running
accept_nonblock
(Socket, >= v1_8_6_287 <= v2_6_3)array containing the accepted socket for the incoming connection, client_socket, and an Addrinfo, client_addrinfo . Example Refer to Socket#accept for the exceptions that may be thrown if the call to accept_nonblock fails. Socket#accept_nonblock may raise any error corresponding to accept (2) failure, including Errno::EWOULDBLOCK
build
(URI::Generic, >= v1_8_6_287 <= v2_6_3)Description Creates a new URI::Generic instance from components of URI::Generic with check. Components are: scheme, userinfo, host, port, registry, path, opaque, query and fragment. You can provide arguments either by an Array or a Hash . See #new for hash keys to use or for order of array items.
sysaccept
(Socket, >= v1_8_6_287 <= v2_6_3)Accepts an incoming connection returning an array containing the (integer) file descriptor for the incoming connection, client_socket_fd, and an Addrinfo, client_addrinfo . Example Refer to Socket#accept for the exceptions that may be thrown if the call to sysaccept fails. See Socket#accept
to_json
(JSON::Ext::Generator::GeneratorMethods::Array, >= v1_9_1_378 <= v2_6_3)Returns a JSON string containing a JSON array, that is generated from this Array instance. state is a JSON::State object, that can also be used to configure the produced JSON string output further.
slice_after
(Enumerable, >= v2_2_9 <= v2_6_3)returns true or the block returns true for the element, the element is end of a chunk . The === and block is called from the first element to the last element of enum . The result enumerator yields the chunked elements as an array. So each method can be called as follows:
shellsplit
(Shellwords, >= v1_9_1_378 <= v2_6_3)Splits a string into an array of tokens in the same way the UNIX Bourne shell does.
shellsplit
(Shellwords, >= v1_8_7_72 <= v2_6_3)Splits a string into an array of tokens in the same way the UNIX Bourne shell does.
completion_proc=
(Readline, >= v1_9_1_378 <= v2_6_3)array of completion candidates. The default completion is used if proc is nil. The String that is passed to the Proc depends on the Readline.completer_word_break_characters property. By default the word under the cursor is passed to the Proc . For example, if the input is “foo bar” then
popen
(Gem::Util, >= v2_1_10 <= v2_6_3)This calls IO.popen where it accepts an array for a command (Ruby 1.9+) and implements an IO.popen-like behavior where it does not accept an array for a command.
getaddrinfo
(Addrinfo, >= v1_9_2_180 <= v2_6_3)array. This method converts nodename (hostname) and service (port) to addrinfo. Since the conversion is not unique, the result is a list of addrinfo objects. nodename or service can be nil if no conversion intended. family, socktype and protocol are hint for preferred protocol . If the result will be used
pipe
(IO, >= v1_8_6_287 <= v2_6_3)array of IO objects: [ read_io, write_io ]. If a block is given, the block is called and returns the value of the block. read_io and write_io are sent to the block as arguments. If read_io and write_io are not closed when the block exits, they
tcp_server_sockets
(Socket, >= v1_9_2_180 <= v2_6_3)array of listening sockets. If a block is given, the block is called with the sockets. The value of the block is returned. The socket is closed when this method returns. If port is 0, actual port number is chosen dynamically. However all sockets in the result has same port
take
(Array, >= v1_8_7_72 <= v2_6_3)Returns first n elements from the array. If a negative number is given, raises an ArgumentError . See also Array#drop
RDoc::Parser
An Array of arrays that maps file extension (or name) regular expressions to parser classes that will parse matching filenames. Use parse_files_matching to register a parser’s file extensions.
reject
(Array, >= v1_8_6_287 <= v2_6_3)Returns a new array containing the items in self for which the given block is not true . The ordering of non-rejected elements is maintained. See also Array#delete_if If no block is given, an Enumerator is returned instead.
to_a
(Time, >= v1_8_6_287 <= v2_6_3)Returns a ten-element array of values for time:
pretty_print_instance_variables
(PP::ObjectMixin, >= v1_8_6_287 <= v2_6_3)Returns a sorted array of instance variable names. This method should return an array of names of instance variables as symbols or strings as: +[:@a, :@b]+.
params
(WIN32OLE_METHOD, >= v1_8_6_287 <= v2_6_3)returns array of WIN32OLE_PARAM object corresponding with method parameters.
to_a
(CSV::Table, >= v1_9_1_378 <= v2_6_3)Returns the table as an Array of Arrays. Headers will be the first row, then all of the field rows will follow.
recvfrom_nonblock
(UDPSocket, >= v1_8_6_287 <= v2_6_3)array to represent the sender address. When recvfrom(2) returns 0, Socket#recvfrom_nonblock returns an empty string as data. It means an empty packet. Parameters maxlen - the number of bytes to receive from the socket flags - zero or more of the MSG_ options outbuf - destination String buffer options - keyword