Merge branch 'example-api' of gitlab.com:arctic-fox/spectator into example-api

This commit is contained in:
Michael Miller 2021-01-08 15:37:46 -07:00
commit 1352110871
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -14,6 +14,11 @@ module Spectator
end end
# Parses a source from a string. # Parses a source from a string.
# The *string* should be in the form:
# ```text
# FILE:LINE
# ```
# This matches the output of the `#to_s` method.
def self.parse(string) def self.parse(string)
# Make sure to handle multiple colons. # Make sure to handle multiple colons.
# If this ran on Windows, there's a possibility of a colon in the path. # If this ran on Windows, there's a possibility of a colon in the path.