Module: LightService::Organizer::ClassMethods
- Defined in:
- lib/light-service/organizer.rb
Overview
In case this module is included
Defined Under Namespace
Classes: VerifyCallMethodExists
Instance Method Summary collapse
Instance Method Details
#reduce(*actions) ⇒ Object
25 26 27 |
# File 'lib/light-service/organizer.rb', line 25 def reduce(*actions) with({}).reduce(actions) end |
#with(data = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/light-service/organizer.rb', line 19 def with(data = {}) VerifyCallMethodExists.call(self, caller.first) data[:_aliases] = @aliases if @aliases WithReducerFactory.make(self).with(data) end |