るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.065秒)
トップページ > クエリ:IO.new[x] > クエリ:gets[x] > クエリ:error_char[x] > クエリ:gsub![x] > クエリ:ext[x] > クラス:Rake::Application[x]

別のキーワード

  1. logger error
  2. _builtin gets
  3. openssl error
  4. irb/input-method gets
  5. openssl error_string

ライブラリ

検索結果

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

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

...

@param ext 拡張子を指定します。

@param loader ローダーを指定します。

//emlist[例][ruby]{
require "rake/loaders/makefile"

# Rakefile での記載例とする

task default: :test
task :test

makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO
.write("sampl...
...e.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
//}...