Class Rake::NameSpace |
|
The NameSpace class will lookup task names in the the scope defined by a namespace command.
Methods |
Public Class methods |
new(task_manager, scope_list) |
Create a namespace lookup object using the given task manager and the list of scopes.
# File lib/rake.rb, line 1393 1393: def initialize(task_manager, scope_list) 1394: @task_manager = task_manager 1395: @scope = scope_list.dup 1396: end
Public Instance methods |
[](name) |
Lookup a task named name in the namespace.
# File lib/rake.rb, line 1399 1399: def [](name) 1400: @task_manager.lookup(name, @scope) 1401: end