Method: Chook::HandledEvent::Handlers.all_handler_paths

Defined in:
lib/chook/event/handled_event/handlers.rb

.all_handler_pathsArray<Pathname>

the Pathname objects for all loaded handlers

Returns:

  • (Array<Pathname>)


147
148
149
150
151
152
153
# File 'lib/chook/event/handled_event/handlers.rb', line 147

def self.all_handler_paths
  hndlrs = named_handlers.values
  hndlrs += handlers.values.flatten
  hndlrs.map do |hndlr|
    hndlr.is_a?(Pathname) ? hndlr : hndlr.handler_file
  end
end