Spectator::Location
Inherits Struct / Value / Object
Defines the file and line number a piece of code originated from.
Constructors
Class methods
parse(string)
Parses a location from a string. The string should be in the form:
FILE:LINE
This matches the output of the #to_s method.
Instance methods
path
The relative path to the file from the current directory. If the file isn't in the current directory or a sub-directory, then the absolute path is provided.