Sha256: c9b1599e746150bf8f71b056cf660087511bfbb988ef013dd3898c7f431ca47d

Contents?: true

Size: 607 Bytes

Versions: 33

Compression:

Stored size: 607 Bytes

Contents

module Oxidized
  class Model
    class Outputs

      def to_cfg
        type_to_str(nil)
      end

      def type_to_str want_type
        type(want_type).map { |out| out }.join
      end

      def << output
        @outputs << output
      end

      def unshift output
        @outputs.unshift output
      end

      def all
        @outputs
      end

      def type type
        @outputs.select { |out| out.type==type }
      end

      def types
        @outputs.map { |out| out.type }.uniq.compact
      end

      private

      def initialize
        @outputs = []
      end

    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
oxidized-0.21.0 lib/oxidized/model/outputs.rb
oxidized-0.20.0 lib/oxidized/model/outputs.rb
oxidized-0.19.0 lib/oxidized/model/outputs.rb
oxidized-0.18.0 lib/oxidized/model/outputs.rb
oxidized-0.17.0 lib/oxidized/model/outputs.rb
oxidized-0.16.3 lib/oxidized/model/outputs.rb
oxidized-0.16.2 lib/oxidized/model/outputs.rb
oxidized-0.16.1 lib/oxidized/model/outputs.rb
oxidized-0.16.0 lib/oxidized/model/outputs.rb
oxidized-0.15.0 lib/oxidized/model/outputs.rb
oxidized-0.14.3 lib/oxidized/model/outputs.rb
oxidized-0.14.2 lib/oxidized/model/outputs.rb
oxidized-0.14.1 lib/oxidized/model/outputs.rb
oxidized-0.14.0 lib/oxidized/model/outputs.rb
oxidized-0.13.1 lib/oxidized/model/outputs.rb
oxidized-0.13.0 lib/oxidized/model/outputs.rb
oxidized-0.12.2 lib/oxidized/model/outputs.rb
oxidized-0.12.1 lib/oxidized/model/outputs.rb
oxidized-0.12.0 lib/oxidized/model/outputs.rb
oxidized-0.11.0 lib/oxidized/model/outputs.rb