[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

10
gc.rb
View file

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