Sha256: 8856bc2b483bf2acf225749743b33a8f7c0060c0297a8b685f596c40f292c8b2

Contents?: true

Size: 400 Bytes

Versions: 26

Compression:

Stored size: 400 Bytes

Contents

require 'hanami/assets/compressors/abstract'

module Hanami
  module Assets
    module Compressors
      # No-op, it returns the asset contents without to compress them.
      #
      # @since 0.1.0
      # @api private
      class NullCompressor < Abstract
        # @since 0.1.0
        # @api private
        def compress(filename)
          read(filename)
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hanami-assets-1.3.5 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.4 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.3 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.2 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.0 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.3.0.beta1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.2.0 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.2.0.rc2 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.2.0.rc1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.2.0.beta2 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.2.0.beta1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.0 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.0.rc1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.0.beta3 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.0.beta2 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.1.0.beta1 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.0.0 lib/hanami/assets/compressors/null_compressor.rb
hanami-assets-1.0.0.rc1 lib/hanami/assets/compressors/null_compressor.rb