るりまサーチ

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 > >>

Date#mon -> Integer (21102.0)

月を返します (1-12)。

月を返します (1-12)。

Date#monday? -> bool (12201.0)

月曜日なら真を返します。

月曜日なら真を返します。

Time#monday? -> bool (12201.0)

self の表す時刻が月曜日である場合に true を返します。 そうでない場合に false を返します。

...self の表す時刻が月曜日である場合に true を返します。
そうでない場合に false を返します。

//emlist[][ruby]{
t = Time.local(2003, 8, 4) # => 2003-08-04 00:00:00 +0900
p t.monday? # => true
//}...

Date#next_month(n = 1) -> Date (9201.0)

n ヶ月後を返します。

...n ヶ月後を返します。

Date#>> も参照してください。

@param n 月数...

Date#prev_month(n = 1) -> Date (9201.0)

n ヶ月前を返します。

...n ヶ月前を返します。

Date#<< も参照してください。

@param n 月数...

絞り込み条件を変える

Date#month -> Integer (9102.0)

月を返します (1-12)。

月を返します (1-12)。

Monitor#wait_for_cond(cond, timeout) -> bool (9101.0)

MonitorMixin::ConditionVariable 用の内部メソッドです。

...MonitorMixin::ConditionVariable 用の内部メソッドです。

@param cond Thread::ConditionVariable を指定します。
@param timeout タイムアウトまでの秒数。指定しなかった場合はタイムアウトしません。

@return タイムアウトしたときは false を返し...
...ます。それ以外は true を返します。

//emlist[例][ruby]{
require 'monitor'
m = Monitor.new
cv = Thread::ConditionVariable.new
m.enter
m.wait_for_cond(cv, 1)
//}...

Monitor#wait_for_cond(cond, timeout) -> true (9101.0)

MonitorMixin::ConditionVariable 用の内部メソッドです。

...MonitorMixin::ConditionVariable 用の内部メソッドです。

@param cond Thread::ConditionVariable を指定します。
@param timeout タイムアウトまでの秒数。指定しなかった場合はタイムアウトしません。

@return Ruby 1.9 の頃からのバグで常に true を...
...返します。(16608)

//emlist[例][ruby]{
require 'monitor'
m = Monitor.new
cv = Thread::ConditionVariable.new
m.enter
m.wait_for_cond(cv, 1)
//}...

MonitorMixin::ConditionVariable#broadcast -> () (9101.0)

その条件変数で 待っている全てのスレッドの実行を再開します。

...その条件変数で
待っている全てのスレッドの実行を再開します。

@see MonitorMixin::ConditionVariable#signal...

MonitorMixin::ConditionVariable#signal -> () (9101.0)

その条件変数で待っているスレッドがあれば実行を再開させます。

...その条件変数で待っているスレッドがあれば実行を再開させます。

複数のスレッドが待っている場合には1つのスレッドのみ
実行を再開します。

@see MonitorMixin::ConditionVariable#broadcast...

絞り込み条件を変える

<< 1 2 > >>