Sha256: ccfb36636fc30b302d6f97017af2ca4220dfca8b8ff23ea8448afebb2b5778c1

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 Bytes

Contents

module WebTranslateIt
  module Safe
    class Gzip < Pipe

      protected

      def post_process
        @backup.compressed = true
      end

      def pipe
        '|gzip'
      end

      def extension
        '.gz'
      end

      def active?
        !@backup.compressed
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
webtranslateit-safe-0.4.3 lib/webtranslateit/safe/gzip.rb
webtranslateit-safe-0.4.2 lib/webtranslateit/safe/gzip.rb
webtranslateit-safe-0.4.1 lib/webtranslateit/safe/gzip.rb