Module: Chemlab::Runtime::Env

Defined in:
lib/chemlab/runtime/env.rb

Overview

Environment configuration file

Class Method Summary collapse

Class Method Details

.debug?Boolean

Returns true if debug mode is enabled.

Examples:

ENV['CHEMLAB_DEBUG'] = 'true'
Runtime::Env.debug? #=> true

Returns:

  • (Boolean)

    true if debug mode is enabled



12
13
14
# File 'lib/chemlab/runtime/env.rb', line 12

def debug?
  enabled?(ENV['CHEMLAB_DEBUG'], default: false)
end