This blog is part of our Ruby 2.6 series.
Ruby 2.6.0-preview2 was recently released.
Before Ruby 2.6,
if we want to know
file name with location
and line number of source code,
we would need to use
Ruby 2.6 adds more readable method
to achieve similar result.
Here is relevant
for this change.
The Chinese version of this blog is available