Class: Omnizip::Implementations::SevenZip::LZMA::MatchFinder::Match
- Inherits:
-
Object
- Object
- Omnizip::Implementations::SevenZip::LZMA::MatchFinder::Match
- Defined in:
- lib/omnizip/implementations/seven_zip/lzma/match_finder.rb
Overview
Represents a match found in the dictionary
Instance Attribute Summary collapse
-
#distance ⇒ Object
readonly
Returns the value of attribute distance.
-
#length ⇒ Object
readonly
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(length, distance) ⇒ Match
constructor
A new instance of Match.
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
#distance ⇒ Object (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 |
#length ⇒ Object (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 |