method

path

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Location
path() public

Returns the file name of this frame.

For example, using caller_locations.rb from Thread::Backtrace::Location

loc = c(0..1).first
loc.path #=> caller_locations.rb
Show source
Register or log in to add new notes.