Sha256: a1a5d6c7b74c4bd0d240e0a11051004f6c5a11c914ad4cccf3fe9ee5c7e36838

Contents?: true

Size: 975 Bytes

Versions: 10

Compression:

Stored size: 975 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
    #
    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

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/context.rb
xcake-0.12.1 lib/xcake/context.rb
xcake-0.12.0 lib/xcake/context.rb
xcake-0.11.0 lib/xcake/context.rb
xcake-0.10.0 lib/xcake/context.rb
xcake-0.9.4 lib/xcake/context.rb
xcake-0.9.3 lib/xcake/context.rb
xcake-0.9.2 lib/xcake/context.rb
xcake-0.9.1 lib/xcake/context.rb
xcake-0.9.0 lib/xcake/context.rb