Ruby 2.5.0 リファレンスマニュアル > ライブラリ一覧 > rakeライブラリ > Rake::InvocationChainクラス > to_s

instance method Rake::InvocationChain#to_s

to_s -> String[permalink][rdoc]

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


# Rakefile での記載例とする

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