method

lineno

Importance_1
v2_5_5 - Show latest stable - 0 notes - Class: 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
Show source
Register or log in to add new notes.