Class: Cure::Strategy::History::HistoryCache
- Inherits:
-
Object
- Object
- Cure::Strategy::History::HistoryCache
- Includes:
- Singleton
- Defined in:
- lib/cure/strategy/base.rb
Instance Attribute Summary collapse
-
#history_cache ⇒ Object
readonly
Returns the value of attribute history_cache.
Instance Method Summary collapse
-
#initialize ⇒ HistoryCache
constructor
A new instance of HistoryCache.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ HistoryCache
Returns a new instance of HistoryCache.
35 36 37 |
# File 'lib/cure/strategy/base.rb', line 35 def initialize @history_cache = {} end |
Instance Attribute Details
#history_cache ⇒ Object (readonly)
Returns the value of attribute history_cache.
33 34 35 |
# File 'lib/cure/strategy/base.rb', line 33 def history_cache @history_cache end |
Instance Method Details
#reset ⇒ Object
39 40 41 |
# File 'lib/cure/strategy/base.rb', line 39 def reset @history_cache = {} end |