るりまサーチ

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

別のキーワード

  1. _builtin empty?
  2. csv empty?
  3. dbm empty?
  4. gdbm empty?
  5. sdbm empty?

検索結果

<< < ... 4 5 6 >>

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

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

...た場合に発生します。

//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.append("task_b") # => LL("task_b", "task_a")
end
//}...

Rake::InvocationChain#member?(task_name) -> bool (7.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.member?("task_a") # => true
invocation_chain.member?("task_b") # => false
end
//}...

Rake::InvocationChain#to_s -> String (7.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
//}...

Thread::Queue#close -> self (7.0)

キューを close します。close 済みのキューを再度 open することはできません。

...を返します
* Thread::Queue#close は無視されます
* Thread::Queue#enq/push/<< は ClosedQueueError を発生します
* Thread::Queue#empty? が false を返す場合は Thread::Queue#deq/pop/shift は通常通りオブジェクトを返します

また、ClosedQueueError は StopIter...

ThreadsWait#next_wait(nonblock = nil) -> Thread (7.0)

指定したスレッドのどれかが終了するまで待ちます。

...rue でかつ、キューが空の時、発生します。

#使用例
require 'thwait'

threads = []
2.times {|i|
threads << Thread.new { sleep i }
}

thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.empty?
th = thall.next_wait
p th
end

@see Queue#pop...

絞り込み条件を変える

<< < ... 4 5 6 >>