Class: Omnizip::Formats::Rar::Rar5::Compression::Lzma::LzmaOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/formats/rar/rar5/compression/lzma.rb

Overview

Simple options class for LZMA parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sizeObject (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

#lcObject (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

#levelObject (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

#lpObject (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

#pbObject (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