るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.058秒)

別のキーワード

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

検索結果

Rake::Application#add_loader(ext, loader) (3015.0)

与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。

...e "rake/loaders/makefile"

# Rakefile での記載例とする

task default: :test
task :test

makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO
.write("sample.mf", makefile)
Rake
.application.add_loader("mf", Rake::MakefileLoader.new)
Rake
.application.add_import("sample.mf")
Rake
::...
...Task.task_defined?("a") # => false
Rake
.application.load_imports
Rake
::Task.task_defined?("a") # => true
//}...