Class: Bootscale::Cache
- Inherits:
-
Object
- Object
- Bootscale::Cache
- Defined in:
- lib/bootscale/cache.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
- #[](path) ⇒ Object
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
- #regenerate ⇒ Object
Constructor Details
#initialize ⇒ Cache
Returns a new instance of Cache.
7 8 9 10 |
# File 'lib/bootscale/cache.rb', line 7 def initialize @entries = {} regenerate end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
5 6 7 |
# File 'lib/bootscale/cache.rb', line 5 def entries @entries end |