[DOC] Tweaks for GC.disable

This commit is contained in:
BurdetteLamar 2025-08-12 12:32:09 -05:00 committed by Peter Zhu
parent 231407c251
commit b934f989b9

6
gc.rb
View file

@ -66,11 +66,13 @@ module GC
# call-seq:
# GC.disable -> true or false
#
# Disables garbage collection, returning +true+ if garbage
# collection was already disabled.
# Disables garbage collection (but GC.start remains potent):
# returns whether garbage collection was already disabled.
#
# GC.enable
# GC.disable # => false
# GC.disable # => true
#
def self.disable
Primitive.gc_disable
end