Class: Radical::Env
- Inherits:
-
Object
- Object
- Radical::Env
- Defined in:
- lib/radical/env.rb
Class Method Summary collapse
Class Method Details
.development? ⇒ Boolean
11 12 13 |
# File 'lib/radical/env.rb', line 11 def development? radical_env.downcase == 'development' end |
.production? ⇒ Boolean
19 20 21 |
# File 'lib/radical/env.rb', line 19 def production? radical_env.downcase == 'production' end |
.radical_env ⇒ Object
7 8 9 |
# File 'lib/radical/env.rb', line 7 def radical_env ENV['RADICAL_ENV'] || '' end |
.test? ⇒ Boolean
15 16 17 |
# File 'lib/radical/env.rb', line 15 def test? radical_env.downcase == 'test' end |