るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer chr
  5. integer new

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Integer#upto(max) {|n| ... } -> Integer (21253.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) -> Enumerator (21153.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 (21012.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 (18208.0)

キューの最大サイズを返します。

...キューの最大サイズを返します。

//emlist[例][ruby]{
q = SizedQueue.new(4)
q.max # => 4
//}...

JSON::State#max_nesting -> Integer (6226.0)

生成される JSON 形式の文字列のネストの深さの最大値を返します。

...ew(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_ne...

絞り込み条件を変える

Net::IMAP.max_flag_count -> Integer (6208.0)

サーバからのレスポンスに含まれる flag の上限を返します。

...サーバからのレスポンスに含まれる flag の上限を返します。

これを越えた flag がレスポンスに含まれている場合は、
Net::IMAP::FlagCountError 例外が発生します。

@see Net::IMAP.max_flag_count=...

Socket::AF_MAX -> Integer (6208.0)

対象のプラットフォーム上でのアドレスファミリーの最大の数値。

...対象のプラットフォーム上でのアドレスファミリーの最大の数値。

@see Socket::Constants::PF_MAX...

Socket::Constants::AF_MAX -> Integer (6208.0)

対象のプラットフォーム上でのアドレスファミリーの最大の数値。

...対象のプラットフォーム上でのアドレスファミリーの最大の数値。

@see Socket::Constants::PF_MAX...

Socket::Constants::PF_MAX -> Integer (6208.0)

プロトコルファミリーの最大数。

...プロトコルファミリーの最大数。

@see Socket::Constants::AF_MAX...

Socket::PF_MAX -> Integer (6208.0)

プロトコルファミリーの最大数。

...プロトコルファミリーの最大数。

@see Socket::Constants::AF_MAX...

絞り込み条件を変える

<< 1 2 3 ... > >>