Module: Tynn::Environment::ClassMethods
- Defined in:
- lib/tynn/environment.rb
Instance Method Summary collapse
-
#development? ⇒ Boolean
Public: Returns
true
if the current environment is:development
. -
#environment ⇒ Object
Public: Returns current environment.
-
#production? ⇒ Boolean
Public: Returns
true
if the current environment is:production
. -
#test? ⇒ Boolean
Public: Returns
true
if the current environment is:test
.
Instance Method Details
#development? ⇒ Boolean
57 58 59 |
# File 'lib/tynn/environment.rb', line 57 def development? return environment == :development end |
#environment ⇒ Object
42 43 44 |
# File 'lib/tynn/environment.rb', line 42 def environment return settings[:environment] end |
#production? ⇒ Boolean
87 88 89 |
# File 'lib/tynn/environment.rb', line 87 def production? return environment == :production end |
#test? ⇒ Boolean
72 73 74 |
# File 'lib/tynn/environment.rb', line 72 def test? return environment == :test end |