shuffle

ary.shuffle â new_aryary.shuffle(random: rng) â new_ary Instance Public methods Returns a new array with elements of self shuffled. a = [ 1, 2, 3 ] #=> [1, 2, 3] a.shuffle #=> [2, 3, 1] The optional rng argument will be used as the random number generator. a.shuffle(random: Random.new(1)) #=> [1, 3, 2]

selection_anchor

selection_anchor(index) Instance Public methods

precs

precs Instance Public methods Returns an Array of two Integer values. The first value is the current number of significant digits in the BigDecimal. The second value is the maximum number of significant digits for the BigDecimal.

listen

listen(addresses = @addresses) Instance Public methods Creates server sockets based on the addresses option. If no addresses were given a server socket for all interfaces is created.

request

request(uri, request_class, last_modified = nil) Instance Public methods Performs a Net::HTTP request of type request_class on uri returning a Net::HTTP response object. request maintains a table of persistent connections to reduce connect overhead.

new

Random.new(seed = Random.new_seed) â prng Class Public methods Creates a new PRNG using seed to set the initial state. If seed is omitted, the generator is initialized with ::new_seed. See ::srand for more information on the use of seed values.

clear

clear() Instance Public methods Removes all objects from the queue.

<<

<<(str) Instance Public methods Alias for: update

tuesday?

time.tuesday? â true or false Instance Public methods Returns true if time represents Tuesday. t = Time.local(1991, 2, 19) #=> 1991-02-19 00:00:00 -0600 p t.tuesday? #=> true

inspect_value

inspect_value(v) Instance Public methods Proc to call when the input is evaluated and output in irb.