lib/wisper.rb in wisper-1.1.0 vs lib/wisper.rb in wisper-1.2.0
- old
+ new
@@ -14,6 +14,10 @@
end
def self.with_listeners(*args, &block)
TemporaryListeners.with(*args, &block)
end
+
+ def self.add_listener(listener)
+ GlobalListeners.add(listener)
+ end
end