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 1412 1412: def initialize(task_manager, scope_list) 1413: @task_manager = task_manager 1414: @scope = scope_list.dup 1415: end
Public Instance methods |
[](name) |
Lookup a task named name in the namespace.
# File lib/rake.rb, line 1418 1418: def [](name) 1419: @task_manager.lookup(name, @scope) 1420: end
tasks() |
Return the list of tasks defined in this namespace.
# File lib/rake.rb, line 1423 1423: def tasks 1424: @task_manager.tasks 1425: end