Returns a new Array containing only those elements that are not found in the
arrays passed in the argument.
2 . delete_at()
Deletes an element from array, per the given index.
3 . delete_if
Removes each element in array for which the block returns a truthy value.
4 . drop()
Returns a new Array containing all but the first n element of array, where n is a
non-negative Integer. Does not modify array.
5 . drop_while
Calls the block with each successive element of array; stops if the block returns
false or nil; returns a new Array omitting those elements for which the block
returned a truthy value.
6 . delete()
Removes the specified element from the array.
7 . dig()
Returns the element/array in nested arrays that is specified by index and identifiers.
8 . detect
Returns the first element for which the block returns a truthy value.
9 . dup
Produces a shallow copy of object. The instance variables of object are copied,
but not the objects they reference. It also doesn’t copy the frozen value state
of object unlike the clone method.
10 . each_index
Passes each successive array index to the block.
11 . empty?
Returns true if the count of elements in array is zero, false otherwise.
12 . eql?
Returns true if array and another array are the same size and contain the same elements in the same index.
13 . each
Iterates over array elements. When a block is given, it passes each successive array
element to the block and returns the array.
14 . entries
This method is an alias for to_a method. Returns an array containing the items
in self.
15 . each_with_index
With a block given, it calls the block with each element and its index and returns the array.
16 . each_entry
Calls the given block with each element, converting multiple values from yield
to an array; returns self.
17 . each_slice
Iterates for each range of N elements and prints them. It takes an integer
argument (slice size) into which the elements are grouped.
18 . each_cons
Iterates for consecutive N elements starting from each element every time.
19 . each_with_object
Calls the block once for each element, passing both the element and the given object.
20 . equal?
Checks for equality at the Object level and returns true only if array and
another array are the same object.