Method: Hanami::Config#env

Defined in:
lib/hanami/config.rb

#envSymbol (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the app’s environment.

Examples:

config.env # => :development

Returns:

  • (Symbol)

See Also:

  • #environment

Since:

  • 2.0.0

[View source]

208
209
210
# File 'lib/hanami/config.rb', line 208

def env
  @env
end