Module: BangBang::EnvMethods

Extended by:
EnvMethods
Included in:
EnvMethods, ServiceConfig::ClassMethods
Defined in:
lib/bang-bang/env_methods.rb

Instance Method Summary collapse

Instance Method Details

#development?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/bang-bang/env_methods.rb', line 3

def development?
  rack_env == "development"
end

#rack_envObject



7
8
9
# File 'lib/bang-bang/env_methods.rb', line 7

def rack_env
  ENV["RACK_ENV"]
end