Class: XcodeMove::Group

Inherits:
File
  • Object
show all
Defined in:
lib/xcmv/file.rb

Instance Attribute Summary

Attributes inherited from File

#path

Instance Method Summary collapse

Methods inherited from File

#add_to_targets, #create_file_reference, #header?, #pbx_file, #project, #reachable_projects, #save_and_close, #with_dirname

Constructor Details

#initialize(path) ⇒ Group

Returns a new instance of Group.



112
113
114
115
# File 'lib/xcmv/file.rb', line 112

def initialize(path)
  path = Pathname.new path
  @path = path.expand_path
end

Instance Method Details

#remove_from_projectObject



117
118
119
120
121
122
123
124
125
# File 'lib/xcmv/file.rb', line 117

def remove_from_project
  if not pbx_file.nil?
    pbx_file.children.each do | c |
      c.remove_from_project
    end
    pbx_file.remove_from_project
    @pbx_file = nil
  end
end