Sha256: 1da2a87fbe59bfadaf30f4993503197e4c02f60a1a0a9fe30bbe20ee3e8fb59b
Contents?: true
Size: 952 Bytes
Versions: 18
Compression:
Stored size: 952 Bytes
Contents
# =========================================================================== # Project: Abbot - SproutCore Build Tools # Copyright: ©2009 Apple Inc. # portions copyright @2006-2009 Sprout Systems, 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
18 entries across 18 versions & 1 rubygems