Class: Trailblazer::Macro::Strategy
- Inherits:
-
Object
- Object
- Trailblazer::Macro::Strategy
- Extended by:
- Forwardable
- Defined in:
- lib/trailblazer/macro/strategy.rb
Overview
Strategy always keeps a Strategy.block_activity and has to define a ‘#call` method per macro type.
Defined Under Namespace
Modules: State
Class Method Summary collapse
- .block_activity ⇒ Object
-
.to_h ⇒ Object
This makes Wrap look like Strategy.block_activity.
Class Method Details
.block_activity ⇒ Object
15 16 17 |
# File 'lib/trailblazer/macro/strategy.rb', line 15 def self.block_activity @state.get(:block_activity) end |
.to_h ⇒ Object
This makes Wrap look like block_activity.
11 12 13 |
# File 'lib/trailblazer/macro/strategy.rb', line 11 def self.to_h block_activity.to_h end |