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 Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#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

Instance Method Details

#file_reference_for_path(path) ⇒ Object

This method returns or creates a file reference for a path



33
34
# File 'lib/xcake/context.rb', line 33

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



26
27
28
# File 'lib/xcake/context.rb', line 26

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

#scheme_listObject

This method returns or creates a scheme list for the project



39
40
# File 'lib/xcake/context.rb', line 39

def scheme_list
end