るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.037秒)
トップページ > モジュール:Kernel[x] > クエリ:File.open[x] > クエリ:$>[x] > 種類:インスタンスメソッド[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 (6221.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 R...