Method: Xcode::Group#file

Defined in:
lib/xcode/group.rb

#file(name) ⇒ Array<FileReference>

Find all the files that have have a name that matches the specified name.

Parameters:

  • name (String)

    of the file that you are looking to return.

Returns:

  • (Array<FileReference>)

    the files with the same mathching name. This could be no files, one file, or multiple files.



87
88
89
# File 'lib/xcode/group.rb', line 87

def file(name)
  files.find_all {|file| file.name == name or file.path == name }
end