Class: Herve::Cache::Shard
- Inherits:
-
Object
- Object
- Herve::Cache::Shard
- Defined in:
- lib/herve/cache/shard.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #entry(file) ⇒ Object
-
#initialize(path) ⇒ Shard
constructor
A new instance of Shard.
Constructor Details
#initialize(path) ⇒ Shard
Returns a new instance of Shard.
8 9 10 |
# File 'lib/herve/cache/shard.rb', line 8 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/herve/cache/shard.rb', line 6 def path @path end |