Class: Yescode::Env

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

Class Method Summary collapse

Class Method Details

.development?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/yescode/env.rb', line 6

def development?
  ENV["RACK_ENV"] == "development"
end

.production?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/yescode/env.rb', line 14

def production?
  ENV["RACK_ENV"] == "production"
end

.test?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/yescode/env.rb', line 10

def test?
  ENV["RACK_ENV"] == "test"
end