るりまサーチ

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

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Rake::InvocationChain#append(task_name) -> Rake::InvocationChain (6121.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::TaskManager#in_namespace(name) {|name_space| ... } -> Array (39.0)

与えられた名前の名前空間でブロックを評価します。

...ます。

@param name 名前を指定します。

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

task default: :test_rake_app

namespace :sample do
def hoge
puts "hoge"
end

end


task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"
end

end

//}...

Rake::NameSpace#[](name) -> Rake::Task (33.0)

与えられた名前のタスクを返します。

...のタスクを返します。

@param name タスクの名前を指定します。

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

namespace :ns do |ns|
task :ts1 do
end

task :ts2 do
end


ns[:ts1] # => <Rake::Task ns:ts1 => []>
ns[:ts2] # => <Rake::Task ns:ts2 => []>
end

//}...

Rake::NameSpace#tasks -> Array (33.0)

タスクのリストを返します。

...タスクのリストを返します。

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

namespace :ns do |ns|
task :ts1 do
end

task :ts2 do
end


ns.tasks # => [<Rake::Task ns:ts1 => []>, <Rake::Task ns:ts2 => []>]
end

//}...

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

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

...am pattern 正規表現を指定します。

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

IO.write("sample1", "line1\nline2\nline3\n")
IO.write("sample2", "line1\nline2\nline3\nline4\n")

task default: :test_rake_app
task :test_rake_app do

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

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

end


# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3, line = l...

絞り込み条件を変える

Rake::TaskManager#create_rule(*args) { ... } (27.0)

与えられたパラメータに従ってルールを作成します。

...に与えるパラメータを指定します。

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

task default: :test_rake_app
task :test_rake_app do
rule = Rake.application.create_rule '.txt' => '.md' do |t|
"#{t}"
end

p rule # => 0x0000558dd2e32d20 /path/to/Rakefile:5>
end

//}...

Rake::TaskManager#last_comment -> String (27.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...
Rake
file 内の最新の詳細説明を追跡するためのメソッドです。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end


desc "test2"
task :test_rake_a...
...pp2 do |task|
end

//}...

Rake::TaskManager#last_description -> String (27.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...
Rake
file 内の最新の詳細説明を追跡するためのメソッドです。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end


desc "test2"
task :test_rake_a...
...pp2 do |task|
end

//}...

Rake::TaskManager#last_description=(description) (27.0)

最新の詳細説明をセットします。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end


desc "test2"
task :test_rake_a...
...pp2 do |task|
end

//}...
<< 1 2 3 ... > >>