るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.181秒)
トップページ > クエリ:-[x] > クエリ:e[x] > クエリ:>[x] > クエリ:ready?[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

ライブラリ

クラス

検索結果

IO#ready? -> IO | false | nil (24401.0)

ブロックせずに読み込み可能なら真を、 ブロックしてしまう可能性があるならfalseを返します。

...ブロックせずに読み込み可能なら真を、
ブロックしてしまう可能性があるならfalseを返します。

判定不可能な場合は nil を返します。...

IO#ready? -> bool | nil (24401.0)

ブロックせずに読み込み可能ならtrueを、 ブロックしてしまう可能性があるならfalseを返します。

...ブロックせずに読み込み可能ならtrueを、
ブロックしてしまう可能性があるならfalseを返します。

判定不可能な場合は nil を返します。...

制御構造 (3054.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...制御構造
条件分岐:
* if
* unless
* case
繰り返し:
* while
* until
* for
* break
* next
* redo
* retry
例外処理:
* raise
* begin
その他:
* return
* BEGIN
* END

Rubyでは(Cなどとは異なり)制御構造は式であ...
...f

//emlist[例][ruby]{
if age >= 12 then
print "adult fee\n"
e
lse
print "child fee\n"
e
nd
gender = if foo.gender == "male" then "male" else "female" end
//}

文法:

if 式 [then]
式 ...
[elsif 式 [then]
式 ... ]
...
[else...
...し実行します。

while は nil を返します。また、引数を伴った break により
while 式の戻り値をその値にすることもできます。

==== while 修飾子

//emlist[例][ruby]{
sleep(60) while io_not_ready?
//}

文法:

式 while

右辺の式を評価...