Class: Rails::Initializable::Collection
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Array
|
|
Instance Chain:
self,
TSort,
::Array
|
|
Inherits: | Array |
Defined in: | railties/lib/rails/initializable.rb |
Class Method Summary
::Array
- Inherited
.wrap | Wraps its argument in an array unless it is already an array (or array-like). |
Instance Attribute Summary
Instance Method Summary
::Array
- Inherited
#blank? | An array is blank if it’s empty: |
#deep_dup | Returns a deep copy of array. |
#excluding | Returns a copy of the |
#extract! | Removes and returns the elements for which the block returns a true value. |
#extract_options! | Extracts options from a set of arguments. |
#fifth | Equal to |
#forty_two | Equal to |
#fourth | Equal to |
#from | Returns the tail of the array from |
#in_groups | Splits or iterates over the array in |
#in_groups_of | Splits or iterates over the array in groups of size |
#including | Returns a new array that includes the passed elements. |
#inquiry | Wraps the array in an |
#second | Equal to |
#second_to_last | Equal to |
#split | Divides the array into one or more subarrays based on a delimiting |
#third | Equal to |
#third_to_last | Equal to |
#to | Returns the beginning of the array up to |
#to_formatted_s | Alias for Array#to_fs. |
#to_fs | Extends |
#to_param | Calls |
#to_query | Converts an array into a string suitable for use as a URL query string, using the given |
#to_sentence | Converts the array to a comma-separated sentence where the last element is joined by the connector word. |
#to_xml | Returns a string that represents the array in XML by invoking |
#without | Alias for Array#excluding. |
#as_json, | |
#compact_blank! | Removes all blank elements from the |
Instance Method Details
#+(other)
[ GitHub ]# File 'railties/lib/rails/initializable.rb', line 53
def +(other) Collection.new(to_a + other.to_a) end
#tsort_each_child(initializer, &block)
[ GitHub ]# File 'railties/lib/rails/initializable.rb', line 49
def tsort_each_child(initializer, &block) select { |i| i.before == initializer.name || i.name == initializer.after }.each(&block) end
#tsort_each_node
[ GitHub ]# File 'railties/lib/rails/initializable.rb', line 48
alias :tsort_each_node :each