module LightService::Organizer::Macros
Public Instance Methods
Source
# File lib/light-service/organizer.rb, line 116 def after_actions(*logic) self.after_actions = logic end
This looks like an accessor, but it’s used as a macro in the Organizer
Source
# File lib/light-service/organizer.rb, line 120 def after_actions=(logic) @after_actions = [logic].flatten end
Source
# File lib/light-service/organizer.rb, line 95 def aliases(key_hash) @aliases = key_hash end
Source
# File lib/light-service/organizer.rb, line 124 def append_after_actions(action) @after_actions ||= [] @after_actions.push(action) end
Source
# File lib/light-service/organizer.rb, line 109 def append_before_actions(action) @before_actions ||= [] @before_actions.push(action) end
Source
# File lib/light-service/organizer.rb, line 101 def before_actions(*logic) self.before_actions = logic end
This looks like an accessor, but it’s used as a macro in the Organizer
Source
# File lib/light-service/organizer.rb, line 105 def before_actions=(logic) @before_actions = [logic].flatten end