るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.057秒)
トップページ > モジュール:Kernel[x] > クエリ:File.open[x] > クエリ:$>[x] > ライブラリ:rake[x] > バージョン:2.6.0[x]

別のキーワード

  1. argf.class lines
  2. argf.class each
  3. argf.class each_line
  4. argf.class gets
  5. argf.class to_a

検索結果

Kernel#file(*args) { ... } -> Rake::FileTask (18667.0)

ファイルタスクを定義します。

...ル名を指定します。

例:
file "config.cfg" => ["config.template"] do
open("config.cfg", "w") do |outfile|
open("config.template") do |infile|
while line = infile.gets
outfile.puts line
end
end
end
end

@see Rake::Task.define_task...