The NameSpace class will lookup task names in the the scope defined by a namespace command.
Methods
Public Class methods
Create a namespace lookup object using the given task manager and the list of scopes.
[ show source ]
# File lib/rake.rb, line 1231
1231: def initialize(task_manager, scope_list)
1232: @task_manager = task_manager
1233: @scope = scope_list.dup
1234: end
Public Instance methods
Lookup a task named name in the namespace.
[ show source ]
# File lib/rake.rb, line 1237
1237: def [](name)
1238: @task_manager.lookup(name, @scope)
1239: end