Method: Hanami::Config#app_name

Defined in:
lib/hanami/config.rb

#app_nameHanami::SliceName (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 or slice’s slice_name.

This is useful for default config values that depend on this name.

Returns:

Since:

  • 2.0.0

[View source]

195
196
197
# File 'lib/hanami/config.rb', line 195

def app_name
  @app_name
end