Issue #12777 has been reported by Kazuhiro NISHIYAMA.

----------------------------------------
Bug #12777: NoMethodError: undefined method `garbage_collect' for GC:Module
https://bugs.ruby-lang.org/issues/12777

* Author: Kazuhiro NISHIYAMA
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: trunk
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
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?




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>