summaryrefslogtreecommitdiff
path: root/doc/syntax/methods.rdoc
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-07-19 11:23:00 -0700
committerJeremy Evans <code@jeremyevans.net>2019-07-19 11:38:49 -0700
commitceeb1535dd6f618ac6069415a69be6d8b2916450 (patch)
tree2f46b536ba8ee1ed11de479368fd749d64a64f6d /doc/syntax/methods.rdoc
parent7e2677675d76551a8a7abdba3fed350056640492 (diff)
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.
Diffstat (limited to 'doc/syntax/methods.rdoc')
-rw-r--r--doc/syntax/methods.rdoc5
1 files changed, 0 insertions, 5 deletions
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