Class: Opal::BuilderScheduler::Prefork
- Inherits:
-
Opal::BuilderScheduler
- Object
- Opal::BuilderScheduler
- Opal::BuilderScheduler::Prefork
- Defined in:
- lib/opal/builder_scheduler/prefork.rb
Defined Under Namespace
Modules: OrderCorrector Classes: Fork, ForkSet
Instance Attribute Summary
Attributes inherited from Opal::BuilderScheduler
Instance Method Summary collapse
-
#process_requires(rel_path, requires, autoloads, options) ⇒ Object
We hook into the process_requires method.
Methods inherited from Opal::BuilderScheduler
Constructor Details
This class inherits a constructor from Opal::BuilderScheduler
Instance Method Details
#process_requires(rel_path, requires, autoloads, options) ⇒ Object
We hook into the process_requires method
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/opal/builder_scheduler/prefork.rb', line 10 def process_requires(rel_path, requires, autoloads, ) return if requires.empty? if @in_fork io = @in_fork io.send(:new_requires, rel_path, requires, autoloads, ) else processed = prefork_reactor(rel_path, requires, autoloads, ) processed = OrderCorrector.correct_order(processed, requires, builder) builder.processed.append(*processed) end end |