Class: Cdb::HashTableEntry
- Inherits:
-
Object
- Object
- Cdb::HashTableEntry
- Defined in:
- lib/cdb/writer.rb
Overview
Value class for an entry in a hash table.
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(hash, key, offset) ⇒ HashTableEntry
constructor
A new instance of HashTableEntry.
Constructor Details
#initialize(hash, key, offset) ⇒ HashTableEntry
135 136 137 138 139 |
# File 'lib/cdb/writer.rb', line 135 def initialize(hash, key, offset) @hash = hash @key = key @offset = offset end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
133 134 135 |
# File 'lib/cdb/writer.rb', line 133 def hash @hash end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
133 134 135 |
# File 'lib/cdb/writer.rb', line 133 def key @key end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
133 134 135 |
# File 'lib/cdb/writer.rb', line 133 def offset @offset end |