Method: Pry::Method#source_file
- Defined in:
- lib/pry/method.rb
#source_file ⇒ String?
Returns The name of the file the method is defined in, or ‘nil` if the filename is unavailable.
348 349 350 351 352 353 354 355 356 357 |
# File 'lib/pry/method.rb', line 348 def source_file if source_location.nil? if source_type == :c info = pry_doc_info info.file if info end else source_location.first end end |