Class: Omnizip::Implementations::SevenZip::LZMA::MatchFinder::Match

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/implementations/seven_zip/lzma/match_finder.rb

Overview

Represents a match found in the dictionary

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(length, distance) ⇒ Match

Returns a new instance of Match.



40
41
42
43
# File 'lib/omnizip/implementations/seven_zip/lzma/match_finder.rb', line 40

def initialize(length, distance)
  @length = length
  @distance = distance
end

Instance Attribute Details

#distanceObject (readonly)

Returns the value of attribute distance.



38
39
40
# File 'lib/omnizip/implementations/seven_zip/lzma/match_finder.rb', line 38

def distance
  @distance
end

#lengthObject (readonly)

Returns the value of attribute length.



38
39
40
# File 'lib/omnizip/implementations/seven_zip/lzma/match_finder.rb', line 38

def length
  @length
end