lib/wisper.rb in wisper-2.0.1 vs lib/wisper.rb in wisper-3.0.0.rc1

- old
+ new

@@ -25,14 +25,14 @@ # # Wisper.subscribe(AuditRecorder.new, StatsRecorder.new) do # # .. # end # - def self.subscribe(*args, &block) + def self.subscribe(*args, **kwargs, &block) if block_given? - TemporaryListeners.subscribe(*args, &block) + TemporaryListeners.subscribe(*args, **kwargs, &block) else - GlobalListeners.subscribe(*args) + GlobalListeners.subscribe(*args, **kwargs) end end def self.unsubscribe(*listeners) GlobalListeners.unsubscribe(*listeners)