class Rake::NameSpace
The NameSpace
class will lookup task names in the the scope defined by a namespace
command.
Public Class Methods
Source
# File lib/rake/name_space.rb 10 def initialize(task_manager, scope_list) 11 @task_manager = task_manager 12 @scope = scope_list.dup 13 end
Create a namespace lookup object using the given task manager and the list of scopes.
Public Instance Methods
Source
# File lib/rake/name_space.rb 16 def [](name) 17 @task_manager.lookup(name, @scope) 18 end
Lookup a task named name
in the namespace.
Source
# File lib/rake/name_space.rb 21 def tasks 22 @task_manager.tasks_in_scope(@scope) 23 end
Return the list of tasks defined in this and nested namespaces.