This blog is part of our Ruby 2.6 series.
Ruby 2.6.0-preview2 was recently released.
If we use
begin..end block in Ruby 2.5,
it gives a warning.
This warning is present
as code inside
will never get executed
In Ruby 2.6 it will raise an exception if we use
changed warning into exception in Ruby 2.6.
Changes made in the commit are experimental.