Class: Mooncell::Loader Private

Inherits:
Object
  • Object
show all
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

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initializeLoader

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.

Since:

  • 0.1.0



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

Since:

  • 0.1.0



46
47
48
# File 'lib/mooncell/loader.rb', line 46

def reload!
  loader.reload
end

#setupObject

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

Since:

  • 0.1.0



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