るりまサーチ

最速Rubyリファレンスマニュアル検索!
502件ヒット [201-300件を表示] (0.084秒)

別のキーワード

  1. psych psych_y
  2. psych y
  3. kernel y
  4. kernel psych_y
  5. y

ライブラリ

モジュール

検索結果

<< < 1 2 3 4 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...
<< < 1 2 3 4 5 ... > >>