Class: Xcodeproj::Project::Object::PBXGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/group.rb

Instance Method Summary collapse

Instance Method Details

#file_for_path(path) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ext/group.rb', line 6

def file_for_path(path)
  result_file = files.find do |file|
    file.path == path
  end
  result_file = new_file(path) unless result_file
  result_file
end

#group_for_path(path) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/ext/group.rb', line 14

def group_for_path(path)
  result_group = groups.find do |group|
    group.path == path
  end
  result_group = new_group(path, path) unless result_group
  result_group
end