Class: Rails::Engine::Railties
- Inherits:
-
Object
- Object
- Rails::Engine::Railties
- Includes:
- Enumerable
- Defined in:
- lib/rails/engine/railties.rb
Instance Attribute Summary collapse
-
#_all ⇒ Object
readonly
Returns the value of attribute _all.
Instance Method Summary collapse
- #-(others) ⇒ Object
- #each(*args, &block) ⇒ Object
-
#initialize ⇒ Railties
constructor
A new instance of Railties.
Constructor Details
#initialize ⇒ Railties
Returns a new instance of Railties.
7 8 9 10 |
# File 'lib/rails/engine/railties.rb', line 7 def initialize @_all ||= ::Rails::Railtie.subclasses.map(&:instance) + ::Rails::Engine.subclasses.map(&:instance) end |
Instance Attribute Details
#_all ⇒ Object (readonly)
Returns the value of attribute _all.
5 6 7 |
# File 'lib/rails/engine/railties.rb', line 5 def _all @_all end |
Instance Method Details
#-(others) ⇒ Object
16 17 18 |
# File 'lib/rails/engine/railties.rb', line 16 def -(others) _all - others end |
#each(*args, &block) ⇒ Object
12 13 14 |
# File 'lib/rails/engine/railties.rb', line 12 def each(*args, &block) _all.each(*args, &block) end |