From ceeb1535dd6f618ac6069415a69be6d8b2916450 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 19 Jul 2019 11:23:00 -0700 Subject: Remove section on performance advantage of not using a block parameter [ci skip] Improvements in Ruby 2.5 and 2.6 make this section no longer accurate. --- doc/syntax/methods.rdoc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'doc/syntax/methods.rdoc') diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index 4e6b926c01..94fed45e9a 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -454,11 +454,6 @@ in this section: yield self end -There is also a performance benefit to using yield over a calling a block -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. - == Exception Handling Methods have an implied exception handling block so you do not need to use -- cgit v1.2.3