Sha256: 5cff374c2489f674b5b4af70afed5a0e0cb037f831c57f4b724d61c0343370d1

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

module Rail
  module Processor
    class Base
      extend Forwardable

      def self.capable?(extension)
        Array(output_extension).include?(extension)
      end

      def self.extensify(filename)
        "#{filename}.#{input_extension}"
      end

      attr_reader :pipeline
      def_delegator :pipeline, :compress?

      def initialize(pipeline)
        @pipeline = pipeline
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rail-0.1.1 lib/rail/processor/base.rb
rail-0.1.0 lib/rail/processor/base.rb
rail-0.0.8 lib/rail/processor/base.rb