Method: Inch::CodeObject::Provider::YARD::Object::Base#filename

Defined in:
lib/inch/code_object/provider/yard/object/base.rb

#filenameString

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

Returns:

  • (String)

    a filename



104
105
106
107
108
# File 'lib/inch/code_object/provider/yard/object/base.rb', line 104

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