Sha256: 2509cdbc599710bba48cd0b7ee9b0e58507f950672d753f787607f13cdf9d9f4

Contents?: true

Size: 943 Bytes

Versions: 47

Compression:

Stored size: 943 Bytes

Contents

# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple Inc.
#            portions copyright @2006-2011 Strobe Inc.
#            and contributors
# ===========================================================================

module SC

  # The NameSpace class will lookup task names in the the scope
  # defined by a +namespace+ command.  Borrowed from Rake 0.8.3
  #
  class NameSpace

    # Create a namespace lookup object using the given task manager
    # and the list of scopes.
    def initialize(task_manager, scope_list)
      @task_manager = task_manager
      @scope = scope_list.dup
    end

    # Lookup a task named +name+ in the namespace.
    def [](name)
      @task_manager.lookup(name, @scope)
    end

    # Return the list of tasks defined in this namespace.
    def tasks
      @task_manager.tasks
    end
  end # NameSpace

end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.11.0.rc3 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.11.0.rc2 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.11.0.rc1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.3.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.2 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.0 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.0.rc.3 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.0.rc.2 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.10.0.rc.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.9.2 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.9.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.9.0 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.8.2.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.8.1 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.8.0 lib/sproutcore/buildfile/namespace.rb
sproutcore-1.7.1.beta-java lib/sproutcore/buildfile/namespace.rb
sproutcore-1.7.1.beta lib/sproutcore/buildfile/namespace.rb
sproutcore-1.6.0.1-java lib/sproutcore/buildfile/namespace.rb