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

instance method Rake::InvocationChain#to_s

to_s -> StringRuby 1.9.3 から[permalink][rdoc][edit]

トップレベルのタスクから自身までの依存関係を文字列として返します。

# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
  invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
  p invocation_chain.to_s # => "TOP => task_a"
end