るりまサーチ

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

別のキーワード

  1. rake to_s
  2. rake []
  3. rake new
  4. rake application
  5. rake tasks

ライブラリ

モジュール

検索結果

<< < 1 2 3 4 ... > >>

Rake::InvocationChain.append(task_name, chain) -> Rake::InvocationChain (11153.0)

与えられたタスク名を第二引数の Rake::InvocationChain に追加します。

... Rake::InvocationChain に追加します。

@param task_name タスク名を指定します。

@param chain 既に存在する Rake::InvocationChain のインスタンスを指定します。

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

task default: :test_rake_app
task :test_rake_a...
...pp do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}...

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (11147.0)

与えられたタスク名を追加して新しい Rake::InvocationChain を返します。

...しい Rake::InvocationChain を返します。

@param task_name 追加するタスク名を指定します。

@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。

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

task default: :test_rake_app
tas...
...k :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}...

Rake::TaskArguments#new_scope(names) -> Rake::TaskArguments (11147.0)

与えられたパラメータ名のリストを使用して新しい Rake::TaskArguments を作成します。

...リストを使用して新しい Rake::TaskArguments を作成します。

@param names パラメータ名のリストを指定します。

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

task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "n...
...ame2"], ["value1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}...

Rake::TaskManager#[](task_name, scopes = nil) -> Rake::Task (11143.0)

与えられたタスク名にマッチするタスクを検索します。

...す。

@param task_name タスク名を指定します。

@param scopes スコープを指定します。

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

task default: :test_rake_app
task :test_rake_app do
Rake
.application["test_rake_app"] # => <Rake::Task test_rake_app => []>
end
//}...

Rake::TaskManager#define_task(task_class, *args) { ... } -> Rake::Task (11137.0)

タスクを定義します。

...s タスククラスを指定します。

@param args タスクに渡すパラメータを指定します。

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

task default: :test_rake_app
task :test_rake_app do
Rake
.application.define_task(Rake::Task, :t) # => <Rake::Task t => []>
end
//}...

絞り込み条件を変える

Rake::TaskManager#lookup(task_name, initial_scope = nil) -> Rake::Task | nil (11137.0)

与えられたタスク名にマッチするタスクを検索します。

...名を指定します。

@param initial_scope 検索するスコープを指定します。

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

task default: :test_rake_app

task :test_rake_app do |task|
task.application.lookup("test_rake_app") # => <Rake::Task test_rake_app => []>
end
//}...

Rake::FileList#existing -> Rake::FileList (11135.0)

自身に含まれるファイルのうちファイルシステムに存在するファイルのみを 含む Rake::FileList を返します。

...ステムに存在するファイルのみを
含む Rake::FileList を返します。

//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", "test2....

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (11135.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

//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", "test2.rb"...

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (11135.0)

各要素に String#pathmap を適用した新しい Rake::FileList を返します。

...各要素に String#pathmap を適用した新しい Rake::FileList を返します。

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

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb", "test3.rb")
file_list.pathmap("%n") # => ["test1",...
<< < 1 2 3 4 ... > >>