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 1666 1666: def initialize(task_manager, scope_list) 1667: @task_manager = task_manager 1668: @scope = scope_list.dup 1669: end
Public Instance methods
Lookup a task named name in the namespace.
[ show source ]
# File lib/rake.rb, line 1672 1672: def [](name) 1673: @task_manager.lookup(name, @scope) 1674: end
Return the list of tasks defined in this and nested namespaces.
[ show source ]
# File lib/rake.rb, line 1677 1677: def tasks 1678: @task_manager.tasks_in_scope(@scope) 1679: end