Method: Inch::CodeObject::Proxy::Base#filename

Defined in:
lib/inch/code_object/proxy/base.rb

#filenameString

Returns the name of the file where the object is declared first

Returns:

  • (String)

    a filename



94
95
96
97
98
# File 'lib/inch/code_object/proxy/base.rb', line 94

def filename
  # just checking the first file (which is the file where an object
  # is first declared)
  files.first
end