るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. rexml comment
  2. comment new
  3. etc comment
  4. rake comment
  5. task comment

クラス

キーワード

検索結果

Rake::Task#comment=(comment) (18652.0)

自身のコメントをセットします。

自身のコメントをセットします。

与えられた文字列が 50 文字を越える場合や複数行である場合は文字列を切り詰めます。

@param comment コメントをあらわす文字列を指定します。

Rake::MakefileLoader#load(filename) (43.0)

与えられた Makefile をロードします。

...します。

@param filename 読み込む Makefile の名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"

task default: :test_rake_app

open "sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4...
...a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end

task :test_rake_app do |task|
loader = Rake::MakefileLoader.new
loader.load("sample.mf")
p Rake::Task.task_defined?("a") # => true
p Rake::Task.tasks[0] # => <Rake::FileTask a => [a1, a2, a3, a4, a5, a6, a7]>
end
//}...