Class: Cure::Strategy::History::HistoryCache
- Inherits:
-
Object
- Object
- Cure::Strategy::History::HistoryCache
- Includes:
- Singleton
- Defined in:
- lib/cure/strategy/base_strategy.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.
36 37 38 |
# File 'lib/cure/strategy/base_strategy.rb', line 36 def initialize @history_cache = {} end |
Instance Attribute Details
#history_cache ⇒ Object (readonly)
Returns the value of attribute history_cache.
34 35 36 |
# File 'lib/cure/strategy/base_strategy.rb', line 34 def history_cache @history_cache end |
Instance Method Details
#reset ⇒ Object
40 41 42 |
# File 'lib/cure/strategy/base_strategy.rb', line 40 def reset @history_cache = {} end |