lib/emittance.rb in emittance-0.0.2 vs lib/emittance.rb in emittance-0.0.3

- old
+ new

@@ -1,15 +1,17 @@ # frozen_string_literal: true require 'emittance/version' require 'emittance/errors' +require 'emittance/helpers/string_helpers' +require 'emittance/helpers/constant_helpers' +require 'emittance/event_lookup' require 'emittance/brokerage' require 'emittance/broker' require 'emittance/registration' require 'emittance/event' -require 'emittance/event/event_builder' require 'emittance/emitter' require 'emittance/watcher' require 'emittance/action' require 'emittance/dispatcher' @@ -18,24 +20,28 @@ # module Emittance class << self # Enable eventing process-wide. def enable! - Emittance::Dispatcher.enable! + Emittance::Brokerage.enable! end # Disable eventing process-wide. def disable! - Emittance::Dispatcher.disable! + Emittance::Brokerage.disable! end # @return [Boolean] true if eventing is enabled, false otherwise. def enabled? - Emittance::Dispatcher.enabled? + Emittance::Brokerage.enabled? end + # Not yet implemented! + # :nocov: # @private - def suppress(&blk) - Emittance::Dispatcher.suppress(&blk) + def suppress(&_blk) + raise NotImplementedError, "This isn't working yet!" + # Emittance::Dispatcher.suppress(&blk) end + # :nocov: end end