[ruby-core:63454] [ruby-trunk - Bug #9998] docs state that define_singleton_method returns a proc if passed a block

From: nobu@...
Date: 2014-06-30 23:27:49 UTC
List: ruby-core #63454
Issue #9998 has been updated by Nobuyoshi Nakada.

Category set to doc
Target version set to current: 2.2.0
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: DONTNEED, 2.1: REQUIRED

The behavior has changed as `def`.

----------------------------------------
Bug #9998: docs state that define_singleton_method returns a proc if passed a block
https://bugs.ruby-lang.org/issues/9998#change-47495

* Author: First Last
* Status: Open
* Priority: Normal
* Assignee: 
* Category: doc
* Target version: current: 2.2.0
* ruby -v: ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
* Backport: 2.0.0: DONTNEED, 2.1: REQUIRED
----------------------------------------
it returns a symbol

I'm guessing the docs are wrong?



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

In This Thread

Prev Next