Class: WorkflowTemplate::Definer::HasActions::Actions::Unprepared
- Inherits:
-
Object
- Object
- WorkflowTemplate::Definer::HasActions::Actions::Unprepared
- Defined in:
- lib/workflow_template/definer/has_actions/actions.rb
Class Method Summary collapse
Instance Method Summary collapse
- #add_simple(action, position) ⇒ Object
- #add_wrapper(action) ⇒ Object
-
#initialize(simple: [], wrapper: []) ⇒ Unprepared
constructor
A new instance of Unprepared.
- #prepared ⇒ Object
Constructor Details
#initialize(simple: [], wrapper: []) ⇒ Unprepared
Returns a new instance of Unprepared.
14 15 16 17 |
# File 'lib/workflow_template/definer/has_actions/actions.rb', line 14 def initialize(simple: [], wrapper: []) @unprepared_simple = simple.freeze @unprepared_wrapper = wrapper.freeze end |
Class Method Details
.instance ⇒ Object
10 11 12 |
# File 'lib/workflow_template/definer/has_actions/actions.rb', line 10 def self.instance new end |
Instance Method Details
#add_simple(action, position) ⇒ Object
21 22 23 |
# File 'lib/workflow_template/definer/has_actions/actions.rb', line 21 def add_simple(action, position) @unprepared_simple = [*@unprepared_simple, [action, position]].freeze end |
#add_wrapper(action) ⇒ Object
25 26 27 |
# File 'lib/workflow_template/definer/has_actions/actions.rb', line 25 def add_wrapper(action) @unprepared_wrapper = [action, *@unprepared_wrapper].freeze end |