From 7e2677675d76551a8a7abdba3fed350056640492 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 19 Jul 2019 11:20:08 -0700 Subject: Remove mention of Proc.new with implicit block [ci skip] This support is now deprecated and will be removed in Ruby 3. --- doc/syntax/methods.rdoc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'doc') diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index 618eb14a1f..4e6b926c01 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -459,10 +459,6 @@ parameter. When a block argument is assigned to a variable a Proc object is created which holds the block. When using yield this Proc object is not created. -If you only need to use the block sometimes you can use Proc.new to create a -proc from the block that was passed to your method. See Proc.new for further -details. - == Exception Handling Methods have an implied exception handling block so you do not need to use -- cgit v1.2.3