class Hanami::App
The Hanami
app is a singular slice tasked with managing the core components of the app and coordinating overall app boot.
For smaller apps, the app may be the only slice present, whereas larger apps may consist of many slices, with the app reserved for holding a small number of shared components only.
@see Slice
@api public @since 2.0.0
Public Class Methods
inherited(subclass)
click to toggle source
@api private @since 2.0.0
Calls superclass method
# File lib/hanami/app.rb, line 22 def self.inherited(subclass) super Hanami.app = subclass subclass.extend(ClassMethods) @_mutex.synchronize do subclass.class_eval do @config = Hanami::Config.new(app_name: slice_name, env: Hanami.env) Hanami::Env.load end end end