Module: RactorRailsShim::PreSpawnSteps

Defined in:
lib/ractor_rails_shim/roles/pre_spawn_steps.rb

Class Method Summary collapse

Class Method Details

.apply_shareable_constantsObject

Apply all registered shareable constants (deep-freeze).



21
22
23
# File 'lib/ractor_rails_shim/roles/pre_spawn_steps.rb', line 21

def apply_shareable_constants
  ConstantShareabilizer.apply!
end

.freeze_shareable_class_ivarsObject

Freeze shareable class ivars on the registered classes.



26
27
28
# File 'lib/ractor_rails_shim/roles/pre_spawn_steps.rb', line 26

def freeze_shareable_class_ivars
  Freezers::ShareableClassIvarFreezer.call
end

.install_framework_patchesObject

Dispatch all framework patches (idempotent).



31
32
33
# File 'lib/ractor_rails_shim/roles/pre_spawn_steps.rb', line 31

def install_framework_patches
  Installer.dispatch_all_framework_patches
end