Project

General

Profile

Bug #12777

NoMethodError: undefined method `garbage_collect' for GC:Module

Added by znz (Kazuhiro NISHIYAMA) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
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?

Associated revisions

Revision 25049e98
Added by nobu (Nobuyoshi Nakada) about 3 years ago

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56194
Added by nobu (Nobuyoshi Nakada) about 3 years ago

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]

Revision 56194
Added by nobu (Nobuyoshi Nakada) about 3 years ago

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]

Revision 56194
Added by nobu (Nobuyoshi Nakada) about 3 years ago

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]

Revision 56194
Added by nobu (Nobuyoshi Nakada) about 3 years ago

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]

Revision c6501ccc
Added by kazu about 3 years ago

gc.c: fix rdoc of garbage_collect [ci skip]

  • gc.c (gc_start_internal): [DOC] methods without arguments like r56194. [Bug #12777]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 56201
Added by znz (Kazuhiro NISHIYAMA) about 3 years ago

gc.c: fix rdoc of garbage_collect [ci skip]

  • gc.c (gc_start_internal): [DOC] methods without arguments like r56194. [Bug #12777]

Revision 56201
Added by kazu about 3 years ago

gc.c: fix rdoc of garbage_collect [ci skip]

  • gc.c (gc_start_internal): [DOC] methods without arguments like r56194. [Bug #12777]

Revision 56201
Added by kazu about 3 years ago

gc.c: fix rdoc of garbage_collect [ci skip]

  • gc.c (gc_start_internal): [DOC] methods without arguments like r56194. [Bug #12777]

Revision 56201
Added by kazu about 3 years ago

gc.c: fix rdoc of garbage_collect [ci skip]

  • gc.c (gc_start_internal): [DOC] methods without arguments like r56194. [Bug #12777]

History

#1

Updated by nobu (Nobuyoshi Nakada) about 3 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]

Also available in: Atom PDF