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 1433
1433: def initialize(task_manager, scope_list)
1434: @task_manager = task_manager
1435: @scope = scope_list.dup
1436: end
Public Instance methods
Lookup a task named name in the namespace.
[ show source ]
# File lib/rake.rb, line 1439
1439: def [](name)
1440: @task_manager.lookup(name, @scope)
1441: end
Return the list of tasks defined in this namespace.
[ show source ]
# File lib/rake.rb, line 1444
1444: def tasks
1445: @task_manager.tasks
1446: end