Actions
Bug #12777
closedNoMethodError: undefined method `garbage_collect' for GC:Module
Description
RDoc says GC.garbage_collect
is equal to GC.start
. But GC.garbage_collect
is a normal method. It is not a singleton method.
So GC.garbage_collect
raises NoMethodError: undefined method `garbage_collect' for GC:Module
.
Which is expected behavior?
Updated by nobu (Nobuyoshi Nakada) almost 8 years ago
- Status changed from Open to Closed
Applied in changeset r56194.
gc.c: fix rdoc of garbage_collect [ci skip]
- gc.c (gc_start_internal): [DOC] add ObjectSpace.garbage_collect
and fix GC#garbage_collect. [Bug #12777]
Actions
Like0
Like0