Flowdock
method

namespace

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: DSL

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

These similar methods exist in v2_5_5:

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.

Example:

ns = namespace "nested" do
  # the "nested:run" task
  task :run
end
task_run = ns[:run] # find :run in the given namespace.

Tasks can also be defined in a namespace by using a “:” in the task name:

task "nested:test" do
  # ...
end
Show source
Register or log in to add new notes.