Sha256: 3a80af585bef8b42685fe2b8055082f5061e79b757c9f40415d1c377ac43fb4a

Contents?: true

Size: 1007 Bytes

Versions: 9

Compression:

Stored size: 1007 Bytes

Contents

require 'xcodeproj'

module Xcake
  # 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.
  #
  module Context
    # The internal hash of native objects reference by their
    # related DSL object
    #
    attr_accessor :object_hash

    def object_hash
      @object_hash ||= {}
    end

    # This method returns or creates a native object
    # for a DSL object
    #
    def native_object_for(dsl_object)
      object_hash[dsl_object] ||= create_object_for(dsl_object)
    end

    # This method returns or creates a file reference
    # for a path
    #
    def file_reference_for_path(path)
    end

    # This method returns or creates a scheme list for
    # the project
    #
    def scheme_list
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcake-0.8.13 lib/xcake/context.rb
xcake-0.8.12 lib/xcake/context.rb
xcake-0.8.10 lib/xcake/context.rb
xcake-0.8.9 lib/xcake/context.rb
xcake-0.8.8 lib/xcake/context.rb
xcake-0.8.7 lib/xcake/context.rb
xcake-0.8.6 lib/xcake/context.rb
xcake-0.8.3 lib/xcake/context.rb
xcake-0.8.1 lib/xcake/context.rb