lineno()
Instance Public methods
Returns the line number of this frame.
For example, using caller_locations.rb
from Thread::Backtrace::Location
1 2 | loc = c( 0 .. 1 ).first loc.lineno #=> 2 |
Returns the line number of this frame.
For example, using caller_locations.rb
from Thread::Backtrace::Location
1 2 | loc = c( 0 .. 1 ).first loc.lineno #=> 2 |
Designed by : w10schools
service@w10schools.com
Please login to continue.