Method: Inch::Language::Elixir::CodeObject::Base#filename

Defined in:
lib/inch/language/elixir/code_object/base.rb

#filenameString

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

Returns:

  • (String)

    a filename



77
78
79
80
81
# File 'lib/inch/language/elixir/code_object/base.rb', line 77

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