method
lineno
v2_6_3 -
Show latest stable
- Class:
Thread::Backtrace::Location
lineno()public
Returns the line number of this frame.
For example, using caller_locations.rb from Thread::Backtrace::Location
loc = c(0..1).first loc.lineno #=> 2