Ruby 4.1 リファレンスマニュアル

singleton method Rake::NameSpace.new

new(task_manager, scope_list)Ruby 1.9.3 から[permalink][rdoc][edit]

自身を初期化します。

[PARAM] task_manager:
Rake::Application のインスタンスを指定します。
[PARAM] scope_list:
名前空間のリストを指定します。
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
  name_space = Rake::NameSpace.new(Rake.application, Rake::Scope.new("sample"))
  p name_space.scope # => LL("sample")
end