module GC

Public Class Methods

force() click to toggle source

Forcefully starts the GC even when GC.disable has been called

# File lib/utilrb/gc/force.rb, line 3
def self.force
    already_enabled = !GC.enable
    GC.start
ensure
    GC.disable unless already_enabled
end