るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.132秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:t[x] > クラス:Rake::FileTask[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

Rake::FileTask#timestamp -> Time | Rake::LateTime (9302.0)

ファイルタスクのタイムスタンプを返します。

...ファイルタスクのタイムスタンプを返します。

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

t
ask default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
t
ask.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}...

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

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

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

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

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