Class: Confinement::Config::ZeitwerkProxy
- Inherits:
-
Object
- Object
- Confinement::Config::ZeitwerkProxy
- Defined in:
- lib/confinement.rb
Instance Method Summary collapse
- #enable_reloading ⇒ Object
-
#initialize {|_self| ... } ⇒ ZeitwerkProxy
constructor
A new instance of ZeitwerkProxy.
- #push_dir(dir) ⇒ Object
- #reload ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ ZeitwerkProxy
Returns a new instance of ZeitwerkProxy.
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_reloading ⇒ Object
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 |
#reload ⇒ Object
160 161 162 |
# File 'lib/confinement.rb', line 160 def reload @loader.reload end |