502件ヒット
[201-300件を表示]
(0.084秒)
別のキーワード
ライブラリ
- ビルトイン (298)
- optparse (24)
- prettyprint (12)
-
rexml
/ document (12) - socket (48)
-
win32
/ registry (96) - win32ole (12)
クラス
-
ARGF
. class (10) - Array (120)
- BasicSocket (24)
-
Encoding
:: Converter (12) - IO (24)
- IPSocket (12)
- OptionParser (24)
- PrettyPrint (12)
-
REXML
:: Element (12) -
RubyVM
:: InstructionSequence (12) - UDPSocket (12)
-
WIN32OLE
_ TYPE (12) -
Win32
:: Registry (96)
モジュール
- Enumerable (120)
キーワード
-
descriptor
_ length (12) -
each
_ element _ with _ attribute (12) - info (12)
-
max
_ by (48) -
max
_ key _ length (12) -
max
_ value _ length (12) -
max
_ value _ name _ length (12) - maxwidth (12)
- minmax (12)
-
minmax
_ by (24) -
num
_ keys (12) -
num
_ values (12) -
ole
_ type (12) - putback (12)
-
read
_ nonblock (22) - recvfrom (12)
-
recvfrom
_ nonblock (12) - recvmsg (12)
-
recvmsg
_ nonblock (12) - sample (48)
- shuffle! (24)
- summarize (24)
- sysread (12)
-
to
_ a (12) - wtime (12)
検索結果
先頭5件
-
PrettyPrint
# maxwidth -> Integer (9101.0) -
自身の幅を返します。
自身の幅を返します。 -
IO
# sysread(maxlen , outbuf = "") -> String (6201.0) -
read(2) を用いて入力を行ない、入力されたデータを 含む文字列を返します。stdio を経由しないので gets や getc や eof? などと混用すると思わぬ動作 をすることがあります。
...rror が発生します。ただし、maxlen に 0 が指定されている場合は、空文字列 "" を返します。
@param maxlen 入力のサイズを整数で指定します。
@param outbuf 出力用のバッファを文字列で指定します。IO#sysread は読み込んだデータを......オブジェクト
があらかじめ maxlen 長の領域であれば、余計なメモリの割当てが行われません。
指定した文字列の長さが maxlen と異なる場合、その文字列は一旦 maxlen 長に
拡張(あるいは縮小)さ......ます。
第二引数を指定した sysread の呼び出しでデータが空であった場
合(sysread が例外 EOFError を発生させる場合)、
outbuf は空文字列になります。
outbuf = "x" * 20;
io = File.open("/dev/null")
p((io.sysread(10,outbuf) rescue nil))
p outbuf... -
Win32
:: Registry # max _ value _ length (6104.0) -
@todo
@todo
キー情報の個々の値を返します。 -
Win32
:: Registry # max _ value _ name _ length (6104.0) -
@todo
@todo
キー情報の個々の値を返します。 -
Win32
:: Registry # num _ keys (6104.0) -
@todo
@todo
キー情報の個々の値を返します。 -
RubyVM
:: InstructionSequence # to _ a -> Array (3113.0) -
self の情報を 14 要素の配列にして返します。
...ォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数......、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成され......ンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensure、:eval、:main、
:defined_guard のいずれか。
: locals
全ての引数名、ローカル変数名からなる Symbol の配列。
: args
引数の指... -
Array
# sample(n) -> Array (3107.0) -
配列の要素を1個(引数を指定した場合は自身の要素数を越えない範囲で n 個) ランダムに選んで返します。
...Random#rand(max) のように選択可能なイン
デックスの最大値が指定されます。
Kernel.#rand、Random を使用しないオブジェク
トを指定した場合、Kernel.#srandの指定に影響されません。
@raise TypeError 引数......//emlist[例][ruby]{
a = (1..10).to_a
p a.sample #=> 9
p a.sample #=> 10
p a.sample(3) #=> [1, 9, 3]
p a #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
//}
random SecureRandom などの乱数生成器を渡すことができます。
//emlist[例][ruby]{
require 'securerand... -
Array
# sample(n , random: Random) -> Array (3107.0) -
配列の要素を1個(引数を指定した場合は自身の要素数を越えない範囲で n 個) ランダムに選んで返します。
...Random#rand(max) のように選択可能なイン
デックスの最大値が指定されます。
Kernel.#rand、Random を使用しないオブジェク
トを指定した場合、Kernel.#srandの指定に影響されません。
@raise TypeError 引数......//emlist[例][ruby]{
a = (1..10).to_a
p a.sample #=> 9
p a.sample #=> 10
p a.sample(3) #=> [1, 9, 3]
p a #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
//}
random SecureRandom などの乱数生成器を渡すことができます。
//emlist[例][ruby]{
require 'securerand... -
Win32
:: Registry # info (3019.0) -
@todo
...キー情報を以下の値の配列で返します:
* num_keys
サブキーの個数
* max_key_length
サブキー名の最大長
* num_values
値の個数
* max_value_name_length
値の名前の最大長
* max_value_length
値の最大長
* descriptor_length
セ......キュリティ記述子の長さ
* wtime
最終更新時刻 (FILETIME)
詳細は以下の Win32 API を参照してください。
* RegQueryInfoKey: http://msdn.microsoft.com/library/en-us/sysinfo/base/regqueryinfokey.asp...