mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for GC.enable
This commit is contained in:
parent
b934f989b9
commit
8b530e1282
1 changed files with 6 additions and 6 deletions
12
gc.rb
12
gc.rb
|
@ -50,14 +50,14 @@ module GC
|
||||||
end
|
end
|
||||||
|
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# GC.enable -> true or false
|
# GC.enable -> true or false
|
||||||
#
|
#
|
||||||
# Enables garbage collection, returning +true+ if garbage
|
# Enables garbage collection;
|
||||||
# collection was previously disabled.
|
# returns whether garbage collection was disabled:
|
||||||
#
|
#
|
||||||
# GC.disable #=> false
|
# GC.disable
|
||||||
# GC.enable #=> true
|
# GC.enable # => true
|
||||||
# GC.enable #=> false
|
# GC.enable # => false
|
||||||
#
|
#
|
||||||
def self.enable
|
def self.enable
|
||||||
Primitive.gc_enable
|
Primitive.gc_enable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue