Class: Radical::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/radical/env.rb

Class Method Summary collapse

Class Method Details

.development?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/radical/env.rb', line 11

def development?
  radical_env.downcase == 'development'
end

.production?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/radical/env.rb', line 19

def production?
  radical_env.downcase == 'production'
end

.radical_envObject



7
8
9
# File 'lib/radical/env.rb', line 7

def radical_env
  ENV['RADICAL_ENV'] || ''
end

.test?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/radical/env.rb', line 15

def test?
  radical_env.downcase == 'test'
end