method

namespace

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: DSL
namespace(name=nil, &block) private

Create a new rake namespace and use it for evaluating the given block. Returns a NameSpace object that can be used to lookup tasks defined in the namespace.

E.g.

ns = namespace "nested" do
  task :run
end
task_run = ns[:run] # find :run in the given namespace.
Show source
Register or log in to add new notes.