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.
This commit is contained in:
Jeremy Evans 2019-07-19 11:23:00 -07:00
Родитель 7e2677675d
Коммит ceeb1535dd
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -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