Sha256: c09a06d8c51f28863f0270827af61b789bc2d2a8ea6937ebc4d3ff4d1eb78ef9

Contents?: true

Size: 428 Bytes

Versions: 15

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

module Jets
  class Engine < Turbine
    class Turbines
      include Enumerable
      attr_reader :_all

      def initialize
        @_all ||= ::Jets::Turbine.subclasses.map(&:instance) +
          ::Jets::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

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/engine/turbines.rb
jets-5.0.12 lib/jets/engine/turbines.rb
jets-5.0.11 lib/jets/engine/turbines.rb
jets-5.0.10 lib/jets/engine/turbines.rb
jets-5.0.9 lib/jets/engine/turbines.rb
jets-5.0.8 lib/jets/engine/turbines.rb
jets-5.0.7 lib/jets/engine/turbines.rb
jets-5.0.6 lib/jets/engine/turbines.rb
jets-5.0.5 lib/jets/engine/turbines.rb
jets-5.0.4 lib/jets/engine/turbines.rb
jets-5.0.3 lib/jets/engine/turbines.rb
jets-5.0.2 lib/jets/engine/turbines.rb
jets-5.0.1 lib/jets/engine/turbines.rb
jets-5.0.0 lib/jets/engine/turbines.rb
jets-5.0.0.beta1 lib/jets/engine/turbines.rb