lib/ventable.rb in ventable-0.0.5 vs lib/ventable.rb in ventable-0.0.6
- old
+ new
@@ -1,8 +1,20 @@
require "ventable/version"
require "ventable/event"
module Ventable
+
+ def self.disable
+ @disabled = true
+ end
+
+ def self.enable
+ @disabled = false
+ end
+
+ def self.enabled?
+ @disabled != true
+ end
end
class String
def underscore
self.gsub(/::/, '/').