るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.116秒)
トップページ > クエリ:I[x] > クエリ:IO[x] > クエリ:-[x] > クラス:Rake::FileTask[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

検索結果

Rake::FileTask#needed? -> bool (3107.0)

このタスクが必要である場合は真を返します。 そうでない場合は偽を返します。

...るファイルが古い場合に真を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.needed? # => true
IO
.write("test.txt", "test")
task.needed? # => false
end
//}...