Project

General

Profile

Bug #9998

docs state that define_singleton_method returns a proc if passed a block

Added by rits (First Last) almost 3 years ago. Updated almost 3 years ago.

Status:
Assigned
Priority:
Normal
Target version:
ruby -v:
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
[ruby-core:63448]

Description

it returns a symbol

I'm guessing the docs are wrong?

History

#1 [ruby-core:63454] Updated by nobu (Nobuyoshi Nakada) almost 3 years ago

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

The behavior has changed as def.

#2 [ruby-core:63466] Updated by zzak (Zachary Scott) almost 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to zzak (Zachary Scott)

Thanks for the report!

Also available in: Atom PDF