summaryrefslogtreecommitdiff
path: root/doc/syntax/methods.rdoc
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-07-19 11:20:08 -0700
committerJeremy Evans <code@jeremyevans.net>2019-07-19 11:38:49 -0700
commit7e2677675d76551a8a7abdba3fed350056640492 (patch)
tree37e8209eeb807e414691fa065ee67dd6b4e9ccbb /doc/syntax/methods.rdoc
parentbf2f84b2ff298583d3efbecb88da271e99fa7930 (diff)
Remove mention of Proc.new with implicit block [ci skip]
This support is now deprecated and will be removed in Ruby 3.
Diffstat (limited to 'doc/syntax/methods.rdoc')
-rw-r--r--doc/syntax/methods.rdoc4
1 files changed, 0 insertions, 4 deletions
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