るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. rss comments
  2. rss comments=
  3. item comments
  4. item comments=
  5. element comments

検索結果

Rake::Application#add_loader(ext, loader) (31.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
//}...