Module: FunctionalLightService::Organizer::Macros
- Defined in:
- lib/functional-light-service/organizer.rb
Instance Method Summary collapse
-
#after_actions(*logic) ⇒ Object
This looks like an accessor, but it's used as a macro in the Organizer.
- #after_actions=(logic) ⇒ Object
- #aliases(key_hash) ⇒ Object
- #append_after_actions(action) ⇒ Object
- #append_before_actions(action) ⇒ Object
-
#before_actions(*logic) ⇒ Object
This looks like an accessor, but it's used as a macro in the Organizer.
- #before_actions=(logic) ⇒ Object
Instance Method Details
#after_actions(*logic) ⇒ Object
This looks like an accessor, but it's used as a macro in the Organizer
90 91 92 |
# File 'lib/functional-light-service/organizer.rb', line 90 def after_actions(*logic) self.after_actions = logic end |
#after_actions=(logic) ⇒ Object
94 95 96 |
# File 'lib/functional-light-service/organizer.rb', line 94 def after_actions=(logic) @after_actions = [logic].flatten end |
#aliases(key_hash) ⇒ Object
69 70 71 |
# File 'lib/functional-light-service/organizer.rb', line 69 def aliases(key_hash) @aliases = key_hash end |
#append_after_actions(action) ⇒ Object
98 99 100 101 |
# File 'lib/functional-light-service/organizer.rb', line 98 def append_after_actions(action) @after_actions ||= [] @after_actions.push(action) end |
#append_before_actions(action) ⇒ Object
83 84 85 86 |
# File 'lib/functional-light-service/organizer.rb', line 83 def append_before_actions(action) @before_actions ||= [] @before_actions.push(action) end |
#before_actions(*logic) ⇒ Object
This looks like an accessor, but it's used as a macro in the Organizer
75 76 77 |
# File 'lib/functional-light-service/organizer.rb', line 75 def before_actions(*logic) self.before_actions = logic end |
#before_actions=(logic) ⇒ Object
79 80 81 |
# File 'lib/functional-light-service/organizer.rb', line 79 def before_actions=(logic) @before_actions = [logic].flatten end |