module Towel
Constants
- VERSION
Public Class Methods
disabled?()
click to toggle source
Returns whether Towel
has been disabled.
# File lib/towel.rb, line 26 def self.disabled? %w[DISABLE_TOWEL TOWEL_DISABLE].any? do |key| ENV.key?(key) && ENV[key] =~ /1|t(rue)?|y(es)?|disabled?/i end end