Sha256: c878fe0c835a721e80ee541ce6b09b5e671e6671bff4cf2e2977a55dc4947fc8

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

require 'Xcodeproj'

class Xcodeproj::Project
	def subproject_refs
		subproject_refs = self.objects.select do |object|
			(object.is_a?(Xcodeproj::Project::Object::PBXFileReference) and object.to_s.downcase.include? 'xcodeproj')
		end

		return subproject_refs
	end

	def subprojects
		self.subproject_refs.map { |ref| Xcodeproj::Project.open(ref.real_path) }
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
XCBuildFaster-0.0.3 lib/ext/xcodeproj.rb
XCBuildFaster-0.0.2 lib/ext/xcodeproj.rb
XCBuildFaster-0.0.1 lib/ext/xcodeproj.rb