Module: Trailblazer::Macro::Strategy::State
- Defined in:
- lib/trailblazer/macro/strategy.rb
Overview
DISCUSS: move this to Linear::Strategy.
Instance Method Summary collapse
Instance Method Details
#inherited(inheritor) ⇒ Object
25 26 27 28 |
# File 'lib/trailblazer/macro/strategy.rb', line 25 def inherited(inheritor) super inheritor.initialize!(@state.copy) end |
#initialize!(state) ⇒ Object
21 22 23 |
# File 'lib/trailblazer/macro/strategy.rb', line 21 def initialize!(state) @state = state end |