るりまサーチ

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

別のキーワード

  1. rake task
  2. task clear
  3. rake define_task
  4. rake empty_task_args

検索結果

<< < ... 3 4 5 >>

Rake::InvocationChain::EmptyInvocationChain#member?(task_name) -> bool (203.0)

偽を返します。

偽を返します。

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

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

...与えられた 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'
# Commen...
...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
//}...

Rake::Application#init(app_name = &#39;rake&#39;) (126.0)

コマンドラインオプションとアプリケーション名を初期化します。

...ンドラインオプションとアプリケーション名を初期化します。

//emlist[例][ruby]{
# Rakefile での記載例とする

task
default: :test
task
:test

Rake.application.name # => "rake"
Rake.application.init("MyApp") # => ["default"]
Rake.application.name # => "MyApp"
//}...

Rake::FileList#excluded_from_list?(file_name) -> bool (120.0)

与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。

...でない場合は偽を返します。

@param file_name ファイル名を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task
default: :test_rake_app
task
:test_rake_app do
file_list = FileList.new("test1.rb",...

Rake::FileList#egrep(pattern) {|filename, count, line| ... } (113.0)

与えられたパターンをファイルリストから grep のように検索します。

...nline3\nline4\n")

task
default: :test_rake_app
task
:test_rake_app do

file_list = FileList.new('sample*')
file_list.egrep(/line/) # => 7

file_list.egrep(/.*/) do |filename, count, line|
"filename = #{filename}, count = #{count}, line = #{line}"
end
end

# => "filename = sample1, count...
...e1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3, line = line3\n"
# => "filename = sample2, count = 1, line = line1\n"
# => "filename = sample2, count = 2, line = line2\n"
# => "filename = sample2, count = 3, line = line3\n"
# => "filename = sample2, cou...

絞り込み条件を変える

Kernel#rule(*args) {|t| ... } -> Rake::Task (108.0)

自動的に作成するタスクのためのルールを定義します。

...自動的に作成するタスクのためのルールを定義します。

@param args ルールに与えるパラメータを指定します。

例:
rule '.o' => '.c' do |t|
sh %{cc -o #{t.name} #{t.source}}
end...
<< < ... 3 4 5 >>