Module: GC
- Defined in:
- lib/utilrb/gc/force.rb
Class Method Summary collapse
-
.force ⇒ Object
Forcefully starts the GC even when GC.disable has been called.
Class Method Details
.force ⇒ Object
Forcefully starts the GC even when GC.disable has been called
3 4 5 6 7 8 |
# File 'lib/utilrb/gc/force.rb', line 3 def self.force already_enabled = !GC.enable GC.start ensure GC.disable unless already_enabled end |