Module: CommandServiceObject::Hooks::ClassMethods
- Defined in:
- lib/command_service_object/hooks.rb
Instance Method Summary collapse
Instance Method Details
#_micros ⇒ Object
53 54 55 |
# File 'lib/command_service_object/hooks.rb', line 53 def _micros @_micros ||= Set.new([]) end |
#micros(*names) ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/command_service_object/hooks.rb', line 57 def micros(*names) service = to_s.split('::') service.pop names.each do |name| obj = "#{service.join('/')}/micros/#{name}".camelize.constantize _micros.add(obj) end end |