Methods
A
E
N
P
R
Class Public methods
engines()
# File railties/lib/rails/engine/railties.rb, line 26
def self.engines
  @engines ||= ::Rails::Engine.subclasses.map(&:instance)
end
new(config)

TODO Write tests for this behavior extracted from Application

# File railties/lib/rails/engine/railties.rb, line 5
def initialize(config)
  @config = config
end
railties()
# File railties/lib/rails/engine/railties.rb, line 22
def self.railties
  @railties ||= ::Rails::Railtie.subclasses.map(&:instance)
end
Instance Public methods
all(&block)
# File railties/lib/rails/engine/railties.rb, line 9
def all(&block)
  @all ||= plugins
  @all.each(&block) if block
  @all
end
plugins()
# File railties/lib/rails/engine/railties.rb, line 15
def plugins
  @plugins ||= begin
    plugin_names = (@config.plugins || [:all]).map { |p| p.to_sym }
    Plugin.all(plugin_names, @config.paths["vendor/plugins"].existent)
  end
end