Module: Xcake::Context

Included in:
XcodeprojContext
Defined in:
lib/xcake/context.rb

Overview

The Context is an object that tracking of native objects in the project format.

It allows components of the Xcake generator system to retrieve the native representation of a DSL object which is useful for operations which require multiple steps.

See XcodeprojContext and the Genrators for how this is used.

Instance Method Summary collapse

Instance Method Details

#file_reference_for_path(path) ⇒ Object

This method returns or creates a file reference for a path



31
32
# File 'lib/xcake/context.rb', line 31

def file_reference_for_path(path)
end

#native_object_for(dsl_object) ⇒ Object

This method returns or creates a native object for a DSL object



24
25
26
# File 'lib/xcake/context.rb', line 24

def native_object_for(dsl_object)
  object_hash[dsl_object] ||= create_object_for(dsl_object)
end

#object_hashObject

The internal hash of native objects reference by their related DSL object



17
18
19
# File 'lib/xcake/context.rb', line 17

def object_hash
  @object_hash ||= {}
end

#scheme_listObject

This method returns or creates a scheme list for the project



37
38
# File 'lib/xcake/context.rb', line 37

def scheme_list
end