Project

General

Profile

Actions

Bug #12777

closed

NoMethodError: undefined method `garbage_collect' for GC:Module

Added by znz (Kazuhiro NISHIYAMA) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:77327]

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?

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 7 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

Also available in: Atom PDF

Like0
Like0