Class: Yescode::Env
- Inherits:
-
Object
- Object
- Yescode::Env
- Defined in:
- lib/yescode/env.rb
Class Method Summary collapse
Class Method Details
.development? ⇒ Boolean
6 7 8 |
# File 'lib/yescode/env.rb', line 6 def development? ENV["RACK_ENV"] == "development" end |
.production? ⇒ Boolean
14 15 16 |
# File 'lib/yescode/env.rb', line 14 def production? ENV["RACK_ENV"] == "production" end |
.test? ⇒ Boolean
10 11 12 |
# File 'lib/yescode/env.rb', line 10 def test? ENV["RACK_ENV"] == "test" end |