Class: Mooncell::Loader Private
- Inherits:
-
Object
- Object
- Mooncell::Loader
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/mooncell/loader.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Code Loader
Instance Method Summary collapse
-
#initialize ⇒ Loader
constructor
private
A new instance of Loader.
-
#reload! ⇒ Object
private
Reload Code.
-
#setup ⇒ Object
private
Setup Loader.
Constructor Details
#initialize ⇒ Loader
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 a new instance of Loader.
26 27 28 |
# File 'lib/mooncell/loader.rb', line 26 def initialize @loader = Zeitwerk::Loader.new end |
Instance Method Details
#reload! ⇒ Object
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.
Reload Code
46 47 48 |
# File 'lib/mooncell/loader.rb', line 46 def reload! loader.reload end |
#setup ⇒ Object
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.
Setup Loader
34 35 36 37 38 39 40 |
# File 'lib/mooncell/loader.rb', line 34 def setup prepare # TODO: Code Reloading loader.enable_reloading if Mooncell.code_reloading? loader.setup # TODO: Eager Load end |