GC

A module that controls garbage collection in the Ruby interpreter.

Module Method

GC.disable

Disables garbage collection.

Returns the previous disable state (if disabled, returns TRUE; if garbage collection was enabled, returns FALSE).

GC.enable

Enables garbage collection.

Returns the previous disable state (if disabled, returns TRUE; if garbage collection was enabled, returns FALSE).

GC.start

Starts garbage collection.

Returns nil.