ライブラリ
クラス
-
ARGF
. class (12) - Array (21)
- CGI (12)
- Data (12)
- Float (60)
-
Net
:: IMAP (106) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ThreadMember (12) -
Net
:: POPMail (36) - Proc (12)
-
RDoc
:: Options (12) - Random (24)
- SignalException (36)
- Socket (36)
- String (24)
- Struct (12)
- Symbol (12)
- Tracer (24)
-
WEBrick
:: Cookie (12)
モジュール
- Etc (12)
- JSON (12)
- Kernel (85)
- SecureRandom (12)
-
Socket
:: Constants (36)
キーワード
-
$ INPUT _ LINE _ NUMBER (12) -
$ NR (12) - % (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ArgumentError (12)
- FloatDomainError (12)
-
IP
_ MAX _ MEMBERSHIPS (24) -
MAX
_ MULTIPART _ COUNT (12) - NAN (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 3
. 0 . 0 (5) - NaN (12)
- Proc (12)
- Ruby用語集 (12)
-
TCP
_ KEEPCNT (24) -
TCP
_ SYNCNT (24) - [] (9)
-
all
_ symbols (12) - angle (12)
- arg (12)
- bigdecimal (12)
- copy (12)
- curry (12)
- expunge (12)
- fetch (12)
- format (12)
- lambda (18)
-
line
_ numbers= (12) - lineno= (12)
- move (10)
- nan? (12)
-
net
/ imap (12) - new (51)
- pack (21)
- pack テンプレート文字列 (12)
- parse (12)
- phase (12)
- proc (19)
-
random
_ number (12) -
rubygems
/ commands / generate _ index _ command (12) - search (12)
- seqno (24)
-
set
_ get _ line _ procs (24) - sort (12)
- sprintf (12)
- sprintf フォーマット (12)
- srand (24)
- store (12)
- sysconf (12)
-
uid
_ sort (12) -
uid
_ thread (12) - uidl (12)
-
unique
_ id (12) - unpack (12)
- クラス/メソッドの定義 (12)
- 手続きオブジェクトの挙動の詳細 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Net
:: POPMail # number -> Integer (21101.0) -
メールに対して振られた、そのメールボックスで一意な番号を返します。
...メールに対して振られた、そのメールボックスで一意な番号を返します。
サーバに接続しなおすとこの番号は変化する場合があります。
メールごとに一意な識別子が必要なときは
Net::POPMail#uidl を使ってください。... -
SecureRandom
. random _ number(n = 0) -> Integer | Float (15207.0) -
ランダムな数値を生成して返します。 n が 1 以上の整数の場合、0 以上 n 未満の整数を返します。 n が 0 の場合、0.0 以上 1.0 未満の実数を返します。
...1.0 未満の実数を返します。
@param n ランダムな数値の上限を数値で指定します。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.random_number(1 << 64) #=> 4078466195356651249... -
rubygems
/ commands / generate _ index _ command (12030.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
...m サーバに対するインデックスを作成するためのライブラリです。
Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help このコマン......backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
Generates the index files for a gem server directory
Description:
The generate_index command creates a......gemname>.gemspec.rz # Marshal quick index file
Marshal.<version>
Marshal.<version>.Z # Marshal full index
yaml
yaml.Z # legacy YAML full index
The .Z and .rz extension files are compressed with the inflate algorithm.
The
Marshal version number com... -
Random
. srand(number) -> Integer (9207.0) -
デフォルトの擬似乱数生成器の種を設定し、古い種を返します。 Kernel.#srand と同じです。
...デフォルトの擬似乱数生成器の種を設定し、古い種を返します。
Kernel.#srand と同じです。
@param number 擬似乱数発生器の種を整数で指定します。
@see Kernel.#rand, Random::DEFAULT......デフォルトの擬似乱数生成器の種を設定し、古い種を返します。
Kernel.#srand と同じです。
@param number 擬似乱数発生器の種を整数で指定します。
@see Kernel.#rand... -
Random
. srand -> Integer (9107.0) -
デフォルトの擬似乱数生成器の種を設定し、古い種を返します。 Kernel.#srand と同じです。
...デフォルトの擬似乱数生成器の種を設定し、古い種を返します。
Kernel.#srand と同じです。
@param number 擬似乱数発生器の種を整数で指定します。
@see Kernel.#rand, Random::DEFAULT......デフォルトの擬似乱数生成器の種を設定し、古い種を返します。
Kernel.#srand と同じです。
@param number 擬似乱数発生器の種を整数で指定します。
@see Kernel.#rand... -
Array
# pack(template) -> String (6616.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結......b" + e)
fra = Integer("0b" + f)
if exp == 0
if fra == 0
sgn * 0 # ±0 (positive/negative zero)
else
sgn * fra * 2**(-126-23) # 非正規化数 (denormalized number)
end
elsif exp == 255
if fra == 0
sgn * Inf # ±∞ (positive/negative infi... -
Array
# pack(template , buffer: String . new) -> String (6616.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......」の長さを
表します。型指定文字は以下で述べる pack テンプレート文字列の通りです。
buffer が指定されていれば、バッファとして使って返値として返します。
もし template の最初にオフセット (@) が指定されていれば、
結......b" + e)
fra = Integer("0b" + f)
if exp == 0
if fra == 0
sgn * 0 # ±0 (positive/negative zero)
else
sgn * fra * 2**(-126-23) # 非正規化数 (denormalized number)
end
elsif exp == 255
if fra == 0
sgn * Inf # ±∞ (positive/negative infi... -
Array
# pack(template) -> String (6598.0) -
配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。
...配列の内容を template で指定された文字列にしたがって、
バイナリとしてパックした文字列を返します。
テンプレートは
型指定文字列とその長さ(省略時は1)を並べたものです。長さと
して * が指定された時は「残りのデ......指定文字は以下で述べる pack テンプレート文字列の通りです。
@param template 自身のバイナリとしてパックするためのテンプレートを文字列で指定します。
以下にあげるものは、Array#pack、String#unpack
のテンプレート文字の......b" + e)
fra = Integer("0b" + f)
if exp == 0
if fra == 0
sgn * 0 # ±0 (positive/negative zero)
else
sgn * fra * 2**(-126-23) # 非正規化数 (denormalized number)
end
elsif exp == 255
if fra == 0
sgn * Inf # ±∞ (positive/negative infi... -
String
# unpack(template) -> Array (6598.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...
Array#pack で生成された文字列を
テンプレート文字列 template にしたがってアンパックし、
それらの要素を含む配列を返します。
@param template pack テンプレート文字列
@return オブジェクトの配列
以下にあげるもの......は、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さの意味はテ......b" + e)
fra = Integer("0b" + f)
if exp == 0
if fra == 0
sgn * 0 # ±0 (positive/negative zero)
else
sgn * fra * 2**(-126-23) # 非正規化数 (denormalized number)
end
elsif exp == 255
if fra == 0
sgn * Inf # ±∞ (positive/negative infi......は、Array#pack、String#unpack、String#unpack1
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」
を表すこともできます。
長さ... -
pack テンプレート文字列 (6498.0)
-
pack テンプレート文字列
...pack テンプレート文字列
以下にあげるものは、Array#pack、String#unpack
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで「残り全て」......整数サイズ非依存 (ネットワークプロトコルなどに適切)
//emlist{
n: big endian unsigned 16bit
N: big endian unsigned 32bit
v: little endian unsigned 16bit
V: little endian unsigned 32bit
//}
: エンディアン依存、整数サイズ依存 (C の構造体などに適......b" + e)
fra = Integer("0b" + f)
if exp == 0
if fra == 0
sgn * 0 # ±0 (positive/negative zero)
else
sgn * fra * 2**(-126-23) # 非正規化数 (denormalized number)
end
elsif exp == 255
if fra == 0
sgn * Inf # ±∞ (positive/negative infi......pack テンプレート文字列
以下にあげるものは、Array#pack、String#unpack、String#unpack1
のテンプレート文字の一覧です。テンプレート文字は後に「長さ」を表す数字
を続けることができます。「長さ」の代わりに`*'とすることで...