Class: Omnizip::Profile::MaximumProfile
- Inherits:
-
CompressionProfile
- Object
- CompressionProfile
- Omnizip::Profile::MaximumProfile
- Defined in:
- lib/omnizip/profile/maximum_profile.rb
Overview
Maximum compression profile
Optimizes for the best compression ratio regardless of time. Uses LZMA2 with level 9 and solid compression for maximum compression.
Instance Attribute Summary
Attributes inherited from CompressionProfile
#algorithm, #description, #filter, #level, #name, #solid
Instance Method Summary collapse
-
#initialize ⇒ MaximumProfile
constructor
Initialize maximum profile.
-
#suitable_for?(_mime_type) ⇒ Boolean
Maximum profile is suitable for all MIME types.
Methods inherited from CompressionProfile
#apply_to, #inspect, #to_h, #to_s
Constructor Details
#initialize ⇒ MaximumProfile
Initialize maximum profile
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/omnizip/profile/maximum_profile.rb', line 11 def initialize super( name: :maximum, algorithm: :lzma2, level: 9, filter: :auto, solid: true, description: "Maximum compression, slower" ) end |
Instance Method Details
#suitable_for?(_mime_type) ⇒ Boolean
Maximum profile is suitable for all MIME types
26 27 28 |
# File 'lib/omnizip/profile/maximum_profile.rb', line 26 def suitable_for?(_mime_type) true end |