Sha256: 4fe7e11728351809c48b4f9a7a8dcfa29de781354386a87f642e85f90dceb299

Contents?: true

Size: 400 Bytes

Versions: 152

Compression:

Stored size: 400 Bytes

Contents

module Rails
  class Engine < Railtie
    class Railties
      include Enumerable
      attr_reader :_all

      def initialize
        @_all ||= ::Rails::Railtie.subclasses.map(&:instance) +
          ::Rails::Engine.subclasses.map(&:instance)
      end

      def each(*args, &block)
        _all.each(*args, &block)
      end

      def -(others)
        _all - others
      end
    end
  end
end

Version data entries

152 entries across 147 versions & 12 rubygems

Version Path
railties-4.2.11.3 lib/rails/engine/railties.rb
railties-4.2.11.2 lib/rails/engine/railties.rb
railties-5.1.7 lib/rails/engine/railties.rb
railties-5.1.7.rc1 lib/rails/engine/railties.rb
railties-5.1.6.2 lib/rails/engine/railties.rb
railties-5.0.7.2 lib/rails/engine/railties.rb
railties-4.2.11.1 lib/rails/engine/railties.rb
railties-5.1.6.1 lib/rails/engine/railties.rb
railties-5.0.7.1 lib/rails/engine/railties.rb
railties-4.2.11 lib/rails/engine/railties.rb
railties-5.1.6 lib/rails/engine/railties.rb
railties-5.0.7 lib/rails/engine/railties.rb
railties-5.1.5 lib/rails/engine/railties.rb
railties-5.1.5.rc1 lib/rails/engine/railties.rb
railties-4.2.10 lib/rails/engine/railties.rb
railties-4.2.10.rc1 lib/rails/engine/railties.rb
railties-5.1.4 lib/rails/engine/railties.rb
railties-5.0.6 lib/rails/engine/railties.rb
railties-5.1.4.rc1 lib/rails/engine/railties.rb
railties-5.0.6.rc1 lib/rails/engine/railties.rb