Method: Warnings::Warning#source_file

Defined in:
lib/warnings/warning.rb

#source_fileString

The source file of the warning.

Returns:

  • (String)

    The path of the file.



53
54
55
# File 'lib/warnings/warning.rb', line 53

def source_file
  @source_location[0]
end