Class: Omnizip::Formats::Rar::Rar5::Compression::Lzma::LzmaOptions
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar::Rar5::Compression::Lzma::LzmaOptions
- Defined in:
- lib/omnizip/formats/rar/rar5/compression/lzma.rb
Overview
Simple options class for LZMA parameters
Instance Attribute Summary collapse
-
#dict_size ⇒ Object
readonly
Returns the value of attribute dict_size.
-
#lc ⇒ Object
readonly
Returns the value of attribute lc.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#lp ⇒ Object
readonly
Returns the value of attribute lp.
-
#pb ⇒ Object
readonly
Returns the value of attribute pb.
Instance Method Summary collapse
-
#initialize(level, dict_size, lc: 3, lp: 0, pb: 2) ⇒ LzmaOptions
constructor
A new instance of LzmaOptions.
Constructor Details
#initialize(level, dict_size, lc: 3, lp: 0, pb: 2) ⇒ LzmaOptions
Returns a new instance of LzmaOptions.
187 188 189 190 191 192 193 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 187 def initialize(level, dict_size, lc: 3, lp: 0, pb: 2) @level = level @dict_size = dict_size @lc = lc @lp = lp @pb = pb end |
Instance Attribute Details
#dict_size ⇒ Object (readonly)
Returns the value of attribute dict_size.
185 186 187 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 185 def dict_size @dict_size end |
#lc ⇒ Object (readonly)
Returns the value of attribute lc.
185 186 187 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 185 def lc @lc end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
185 186 187 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 185 def level @level end |
#lp ⇒ Object (readonly)
Returns the value of attribute lp.
185 186 187 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 185 def lp @lp end |
#pb ⇒ Object (readonly)
Returns the value of attribute pb.
185 186 187 |
# File 'lib/omnizip/formats/rar/rar5/compression/lzma.rb', line 185 def pb @pb end |