るりまサーチ

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

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

キーワード

検索結果

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

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

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

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

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

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

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

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

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

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