From e77f9fcb13a157c2478a0e78cdb0b9696e8ded8c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Jun 2015 05:53:41 +0000 Subject: proc.c: ArgumentError if no block * proc.c (rb_mod_define_method): now requires a block direct to this method call. [ruby-core:69655] [Bug #11283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 05ae35a978..19171f3169 100644 --- a/NEWS +++ b/NEWS @@ -61,6 +61,11 @@ with all sufficient information, see the ChangeLog file. * IO * IO#close doesn't raise when the IO object is closed. [Feature #10718] +* Module + * Module#define_method and Object.define_singleton_method now + require method body, Proc, Method, or a block, and raise + ArgumentError if no block is given directly. [Bug #11283] + * pack/unpack (Array/String) * j and J directives for pointer width integer type. [Feature #11215] -- cgit v1.2.3