Skip to content

Commit

Permalink
Remove section on performance advantage of not using a block paramete…
Browse files Browse the repository at this point in the history
…r [ci skip]

Improvements in Ruby 2.5 and 2.6 make this section no longer
accurate.
  • Loading branch information
jeremyevans committed Jul 19, 2019
1 parent 7e26776 commit ceeb153
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions doc/syntax/methods.rdoc
Expand Up @@ -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
Expand Down

0 comments on commit ceeb153

Please sign in to comment.