class XcodeMove::Group

Public Class Methods

new(path) click to toggle source
# File lib/xcmv/file.rb, line 112
def initialize(path)
  path = Pathname.new path
  @path = path.expand_path
end

Public Instance Methods

remove_from_project() click to toggle source
# 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

Private Instance Methods

pbx_load() click to toggle source
# File lib/xcmv/file.rb, line 129
def pbx_load
  @pbx_file = project.main_group.recursive_children.find { |g| g.respond_to?(:real_path) and g.real_path == path }
end