Class: ZkRecipes::Cache::CachedPath
- Inherits:
-
Object
- Object
- ZkRecipes::Cache::CachedPath
- Defined in:
- lib/zk_recipes/cache.rb
Instance Attribute Summary collapse
-
#stat ⇒ Object
readonly
Returns the value of attribute stat.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, stat: nil, valid: false) ⇒ CachedPath
constructor
A new instance of CachedPath.
- #valid? ⇒ Boolean
Constructor Details
#initialize(value, stat: nil, valid: false) ⇒ CachedPath
Returns a new instance of CachedPath.
216 217 218 219 220 |
# File 'lib/zk_recipes/cache.rb', line 216 def initialize(value, stat: nil, valid: false) @value = value @stat = stat @valid = valid end |
Instance Attribute Details
#stat ⇒ Object (readonly)
Returns the value of attribute stat.
215 216 217 |
# File 'lib/zk_recipes/cache.rb', line 215 def stat @stat end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
215 216 217 |
# File 'lib/zk_recipes/cache.rb', line 215 def value @value end |
Instance Method Details
#valid? ⇒ Boolean
222 223 224 |
# File 'lib/zk_recipes/cache.rb', line 222 def valid? @valid end |