るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 > >>

Net::SMTP#ready(from_addr, *to_addrs) {|f| .... } -> () (15207.0)

メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。

...rom: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'
f.puts
f.puts 'This is test mail.'
}
}

ready
は obsolete です。

@param from_addr 送信元のメールアドレス
@param to_addrs 送信先のメールアドレス(複数可、少な...

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

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

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

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

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

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

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

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

Socket::Constants::MSG_HAVEMORE -> Integer (116.0)

@todo Data ready to be read

...@todo
Data ready to be read...

Socket::Constants::SO_WANTMORE -> Integer (116.0)

@todo Give a hint when more data is ready。

...@todo
Give a hint when more data is ready...

絞り込み条件を変える

Socket::Constants::TCP_DEFER_ACCEPT -> Integer (116.0)

Don't notify a listening socket until data is ready。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Don't notify a listening socket until data is ready
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see tcp(7linux)...

Socket::MSG_HAVEMORE -> Integer (116.0)

@todo Data ready to be read

...@todo
Data ready to be read...

Socket::SO_WANTMORE -> Integer (116.0)

@todo Give a hint when more data is ready。

...@todo
Give a hint when more data is ready...

Socket::TCP_DEFER_ACCEPT -> Integer (116.0)

Don't notify a listening socket until data is ready。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Don't notify a listening socket until data is ready
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see tcp(7linux)...

Net::SMTP#open_message_stream(from_addr, *to_addrs) {|f| .... } -> () (107.0)

メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。

...rom: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: test mail'
f.puts
f.puts 'This is test mail.'
}
}

ready
は obsolete です。

@param from_addr 送信元のメールアドレス
@param to_addrs 送信先のメールアドレス(複数可、少な...

絞り込み条件を変える

制御構造 (24.0)

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

...eak により
while 式の戻り値をその値にすることもできます。

==== while 修飾子

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

文法:

式 while 式

右辺の式を評価した値が真の間、左辺を繰り返し実行します。

左辺の式が begi...
...ます。

//emlist[][ruby]{
def iter
# (a)
# :
# (b)
yield
# (c)
# :
# (d)
end
iter { redo } # -> (b) へ飛ぶ
iter { next } # -> (c) へ飛ぶ
iter { break } # -> (d) へ飛ぶ
//}

(a) は、厳密には引数評価から始まります。(b) はブロック実行の直前...
...def iter(var = p("(a)"))
yield
p "(c)"
ensure
p "(d)"
end
iter { p "(b)"; redo } # -> (a) .. (b)(b)(b)(b) ...
iter { p "(b)"; next } # -> (a) .. (b)(c) .. (d)
iter { p "(b)"; break } # -> (a)..(b)(d)
//}

====[a:retry] retry

例:

retry

文法:

retry

retr...
<< 1 2 > >>