mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +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
|
||||
|
||||
# call-seq:
|
||||
# GC.enable -> true or false
|
||||
# GC.enable -> true or false
|
||||
#
|
||||
# Enables garbage collection, returning +true+ if garbage
|
||||
# collection was previously disabled.
|
||||
# Enables garbage collection;
|
||||
# returns whether garbage collection was disabled:
|
||||
#
|
||||
# GC.disable #=> false
|
||||
# GC.enable #=> true
|
||||
# GC.enable #=> false
|
||||
# GC.disable
|
||||
# GC.enable # => true
|
||||
# GC.enable # => false
|
||||
#
|
||||
def self.enable
|
||||
Primitive.gc_enable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue