From 50fdc6d72c6ba14e0dbdfa896a4ed54c04f6b0ea Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 11 Nov 2014 15:35:15 -0700 Subject: add oops!. --- lib/urkel.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/urkel.rb b/lib/urkel.rb index 258e82e..b26f4bc 100644 --- a/lib/urkel.rb +++ b/lib/urkel.rb @@ -18,6 +18,11 @@ module Urkel @connection.publish(error) end + def self.oops!(error) + raise InvalidConfigurationError.new unless @connection + @connection.publish!(error) + end + def self.reset @connection = nil end -- cgit v1.2.3