Class Rake::NameSpace
In: lib/rake.rb
Parent: Object

The NameSpace class will lookup task names in the the scope defined by a namespace command.

Methods

[]   new   tasks  

Public Class methods

Create a namespace lookup object using the given task manager and the list of scopes.

[Source]

      # File lib/rake.rb, line 1413
1413:     def initialize(task_manager, scope_list)
1414:       @task_manager = task_manager
1415:       @scope = scope_list.dup
1416:     end

Public Instance methods

Lookup a task named name in the namespace.

[Source]

      # File lib/rake.rb, line 1419
1419:     def [](name)
1420:       @task_manager.lookup(name, @scope)
1421:     end

Return the list of tasks defined in this namespace.

[Source]

      # File lib/rake.rb, line 1424
1424:     def tasks
1425:       @task_manager.tasks
1426:     end

[Validate]