るりまサーチ

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

別のキーワード

  1. rake to_s
  2. rake []
  3. rake application
  4. rake clear

検索結果

<< 1 2 3 ... > >>

Rake::TaskArguments#new_scope(names) -> Rake::TaskArguments (17273.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", "name2"], ["va...
...lue1", "value2"])
new_arguments = arguments.new_scope(["name3", "name4"])
p new_arguments # => #<Rake::TaskArguments >
p new_arguments.names # => ["name3", "name4"]
end
//}...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (11236.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", "test3.rb")...

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (11148.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::FileList#existing -> Rake::FileList (11136.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.rb", "test3.rb")...

Rake::FileList#pathmap(spec = nil) -> Rake::FileList (11136.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",...

絞り込み条件を変える

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

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

与えられたタスク名が自身に含まれる場合は真を返します。 そうでない場合は偽を返します。

...

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

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

task default: :test_rake_app
task :test_rake_app do
invocation_chain = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.member?("task_a") # => true...

Rake::InvocationChain#to_s -> String (11031.0)

トップレベルのタスクから自身までの依存関係を文字列として返します。

...での依存関係を文字列として返します。

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

task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//...

Rake::TaskArguments#[](key) -> object (11025.0)

与えられたパラメータ名に対応する値を返します。

...ます。

@param key パラメータの名前を指定します。

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

task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments["name1"] # => "value1"
argumen...
<< 1 2 3 ... > >>