156件ヒット
[1-100件を表示]
(0.120秒)
ライブラリ
- ビルトイン (82)
- json (24)
- prettyprint (12)
- socket (24)
- thread (2)
クラス
- BasicSocket (24)
- Integer (36)
-
JSON
:: State (24) - PrettyPrint (12)
- Random (36)
-
Thread
:: SizedQueue (12) -
WEBrick
:: Cookie (12)
キーワード
- depth= (12)
-
max
_ age (12) -
max
_ nesting (12) - maxwidth (12)
- rand (36)
- recvmsg (12)
-
recvmsg
_ nonblock (12) -
to
_ f (12) - upto (24)
検索結果
先頭5件
-
Integer
# upto(max) -> Enumerator (27354.0) -
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
...self から max まで 1 ずつ増やしながら繰り返します。
self > max であれば何もしません。
@param max 数値
@return self を返します。
//emlist[][ruby]{
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10
//}
@see Integer#downto, Numeric#step, Integer#times... -
Integer
# upto(max) {|n| . . . } -> Integer (27354.0) -
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
...self から max まで 1 ずつ増やしながら繰り返します。
self > max であれば何もしません。
@param max 数値
@return self を返します。
//emlist[][ruby]{
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10
//}
@see Integer#downto, Numeric#step, Integer#times... -
Integer
# to _ f -> Float (27113.0) -
self を浮動小数点数(Float)に変換します。
...self を浮動小数点数(Float)に変換します。
self が Float の範囲に収まらない場合、Float::INFINITY を返します。
//emlist[][ruby]{
1.to_f # => 1.0
(Float::MAX.to_i * 2).to_f # => Infinity
(-Float::MAX.to_i * 2).to_f # => -Infinity
//}... -
Thread
:: SizedQueue # max -> Integer (21309.0) -
キューの最大サイズを返します。
...キューの最大サイズを返します。
//emlist[例][ruby]{
q = SizedQueue.new(4)
q.max # => 4
//}... -
JSON
:: State # max _ nesting -> Integer (12327.0) -
生成される JSON 形式の文字列のネストの深さの最大値を返します。
...ません。
//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_state.max_nesting # => 2
JSON.generate([[]], json_state)
JSON.generate([[[]]], json_state) # => JSON::NestingError
//}
//emlist[例 ネストの深......さチェックを行わない][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 0)
json_state.max_nesting # => 0
JSON.generate([[[[[[[[[[]]]]]]]]]], json_state)
//}... -
PrettyPrint
# maxwidth -> Integer (12302.0) -
自身の幅を返します。
自身の幅を返します。 -
WEBrick
:: Cookie # max _ age -> Integer (6304.0) -
クッキーの寿命を整数(単位は秒)で表すアクセサです。
クッキーの寿命を整数(単位は秒)で表すアクセサです。
@param value クッキーの寿命を正の整数で指定します。0 は直ちに破棄される事を意味する。 -
JSON
:: State # depth=(depth) (6233.0) -
This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.
...
This sets the maximum level of data structure nesting in the generated
JSON to the integer depth, max_nesting = 0 if no maximum should be
checked.... -
BasicSocket
# recvmsg(maxmesglen=nil , flags=0 , maxcontrollen=nil , opts={}) -> [String , Addrinfo , Integer , *Socket :: AncillaryData] (3502.0) -
recvmsg(2) を用いてメッセージを受け取ります。
...ます。ノンブロッキング方式で通信したい
場合は BasicSocket#recvmsg_nonblock を用います。
maxmesglen, maxcontrollen で受け取るメッセージおよび補助データ
(Socket::AncillaryData)の最大長をバイト単位で指定します。
省略した場合は必要......は Socket::MSG_* という名前の定数の biwsise OR を取った
ものを渡します。
opts にはその他のオプションを渡します。今のところ :scm_right => bool
というオプションのみ利用できます。このオプションに
真を渡すと、 SCM_RIGHTS 制御......ます。詳しくは Socket::AncillaryData#unix_rights
を参照してください。
返り値は配列で得られます。
返り値の配列の最初の要素は受け取ったメッセージを表す文字列です。
2番目の要素は connection-less socket の場合には送り元の...