Method: Hanami::Slice::ClassMethods#autoloader

Defined in:
lib/hanami/slice.rb

#autoloaderZeitwerk::Loader (readonly)

Returns the slice’s autoloader.

Each slice has its own ‘Zeitwerk::Loader` autoloader instance, which is setup when the slice is prepared.

Returns:

  • (Zeitwerk::Loader)

See Also:

Since:

  • 2.0.0

[View source]

76
77
78
# File 'lib/hanami/slice.rb', line 76

def autoloader
  @autoloader
end