Class: Confinement::Config::ZeitwerkProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/confinement.rb

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ ZeitwerkProxy

Returns a new instance of ZeitwerkProxy.

Yields:

  • (_self)

Yield Parameters:



146
147
148
149
150
# File 'lib/confinement.rb', line 146

def initialize
  @loader = Zeitwerk::Loader.new
  yield(self)
  @loader.setup
end

Instance Method Details

#enable_reloadingObject



156
157
158
# File 'lib/confinement.rb', line 156

def enable_reloading
  @loader.enable_reloading
end

#push_dir(dir) ⇒ Object



152
153
154
# File 'lib/confinement.rb', line 152

def push_dir(dir)
  @loader.push_dir(dir)
end

#reloadObject



160
161
162
# File 'lib/confinement.rb', line 160

def reload
  @loader.reload
end