lib/wisper.rb in wisper-2.0.0.rc1 vs lib/wisper.rb in wisper-2.0.0
- old
+ new
@@ -1,9 +1,11 @@
require 'set'
require 'wisper/version'
require 'wisper/configuration'
require 'wisper/publisher'
+require 'wisper/value_objects/prefix'
+require 'wisper/value_objects/events'
require 'wisper/registration/registration'
require 'wisper/registration/object'
require 'wisper/registration/block'
require 'wisper/global_listeners'
require 'wisper/temporary_listeners'
@@ -29,9 +31,13 @@
if block_given?
TemporaryListeners.subscribe(*args, &block)
else
GlobalListeners.subscribe(*args)
end
+ end
+
+ def self.unsubscribe(*listeners)
+ GlobalListeners.unsubscribe(*listeners)
end
def self.publisher
Publisher
end