Top Level Namespace
Defined Under Namespace
Modules: SportDb
Constant Summary collapse
- TRUE_VALUES =
todo/check - move true values and debug? “upstream” to monos - why? why not??
[ 'true', 't', 'yes', 'y', 'on', '1', # note: add 1 too ]
Instance Method Summary collapse
-
#debug? ⇒ Boolean
include / check for ruby debug flag too - why? why not?.
Instance Method Details
#debug? ⇒ Boolean
include / check for ruby debug flag too - why? why not?
27 28 29 30 31 32 33 34 |
# File 'lib/sportdb/setup.rb', line 27 def debug? ## always include (NOT just insportdb?) value = ENV['DEBUG'] if value && TRUE_VALUES.include?( value.downcase ) true else false end end |