Remove mention of Proc.new with implicit block [ci skip]
This support is now deprecated and will be removed in Ruby 3.
This commit is contained in:
parent
bf2f84b2ff
commit
7e2677675d
@ -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 which holds the block. When using yield this Proc object is not
|
||||||
created.
|
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
|
== Exception Handling
|
||||||
|
|
||||||
Methods have an implied exception handling block so you do not need to use
|
Methods have an implied exception handling block so you do not need to use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user