Class: Rails::Initializable::Collection
- Inherits:
-
Array
show all
- Includes:
- TSort
- Defined in:
- railties/lib/rails/initializable.rb
Instance Method Summary
collapse
Methods inherited from Array
#as_json, #deep_dup, #extract_options!, #fifth, #forty_two, #fourth, #from, #in_groups, #in_groups_of, #second, #split, #third, #to, #to_formatted_s, #to_param, #to_query, #to_sentence, #to_xml, wrap
Instance Method Details
47
48
49
|
# File 'railties/lib/rails/initializable.rb', line 47
def +(other)
Collection.new(to_a + other.to_a)
end
|
#tsort_each_child(initializer, &block) ⇒ Object
43
44
45
|
# File 'railties/lib/rails/initializable.rb', line 43
def tsort_each_child(initializer, &block)
select { |i| i.before == initializer.name || i.name == initializer.after }.each(&block)
end
|