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.1.14.1 lib/rails/engine/railties.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/engine/railties.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/engine/railties.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/engine/railties.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/engine/railties.rb
railties-5.0.0.beta1 lib/rails/engine/railties.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/engine/railties.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/engine/railties.rb
railties-4.1.14 lib/rails/engine/railties.rb
railties-4.2.5 lib/rails/engine/railties.rb
railties-4.2.5.rc2 lib/rails/engine/railties.rb
railties-4.1.14.rc2 lib/rails/engine/railties.rb
railties-4.2.5.rc1 lib/rails/engine/railties.rb
railties-4.1.14.rc1 lib/rails/engine/railties.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine/railties.rb
railties-4.2.4 lib/rails/engine/railties.rb
railties-4.1.13 lib/rails/engine/railties.rb
railties-4.2.4.rc1 lib/rails/engine/railties.rb
railties-4.1.13.rc1 lib/rails/engine/railties.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/railties-4.2.3/lib/rails/engine/railties.rb