Module: Towel
- Defined in:
- lib/towel.rb,
lib/towel/log.rb,
lib/towel/log_io.rb,
lib/towel/session.rb,
lib/towel/version.rb,
lib/towel/environment.rb,
lib/towel/configuration.rb
Defined Under Namespace
Modules: Environment Classes: Configuration, Error, Log, LogIO, Session
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
-
.disabled? ⇒ Boolean
Returns whether Towel has been disabled.
Class Method Details
.disabled? ⇒ Boolean
Returns whether Towel has been disabled.
26 27 28 29 30 |
# 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 |