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.1.rc1 lib/rails/engine/railties.rb
activejob-lock-0.0.1 rails/railties/lib/rails/engine/railties.rb
railties-4.1.9 lib/rails/engine/railties.rb
railties-4.1.9.rc1 lib/rails/engine/railties.rb
railties-4.2.0 lib/rails/engine/railties.rb
railties-4.2.0.rc3 lib/rails/engine/railties.rb
railties-4.2.0.rc2 lib/rails/engine/railties.rb
railties-4.2.0.rc1 lib/rails/engine/railties.rb
railties-4.1.7.1 lib/rails/engine/railties.rb
railties-4.1.8 lib/rails/engine/railties.rb
railties-4.2.0.beta4 lib/rails/engine/railties.rb
railties-4.2.0.beta3 lib/rails/engine/railties.rb
railties-4.1.7 lib/rails/engine/railties.rb
railties-4.2.0.beta2 lib/rails/engine/railties.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/engine/railties.rb
railties-4.1.6 lib/rails/engine/railties.rb
railties-4.1.6.rc2 lib/rails/engine/railties.rb
railties-4.2.0.beta1 lib/rails/engine/railties.rb
railties-4.1.6.rc1 lib/rails/engine/railties.rb
railties-4.1.5 lib/rails/engine/railties.rb