るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.100秒)
トップページ > クエリ:i[x] > クエリ:array[x] > 種類:関数[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

検索結果

static void mark_locations_array(register VALUE *x, register long n) (12201.0)

static VALUE rb_f_array(VALUE obj, VALUE arg) (6217.0)

Kernel.#Array の実体です。

...Kernel.#Array の実体です。...

VALUE rb_ary_new3(long n, VALUE i0, i1, i2, ...) (215.0)

長さ n で要素に i0 i1 i2 …を格納した Ruby の配列を作成し返します。

...n で要素に i0 i1 i2 …を格納した
Ruby の配列を作成し返します。

対応するRubyコード

ary = Array[i0, i1, i2...] または
ary = [i0, i1, i2...]

使用例

VALUE ary;
i
nt i[3] = { 1, 2, 3 };
ary = rb_ary_new3(3, INT2FIX(i[0]), INT2FIX(i[1]), INT2FIX(i[2]));...

VALUE rb_check_convert_type(VALUE val, int type, const char *tname, const char *method) (107.0)

val.method を実行してクラス tname のインスタンスを返します。 val がメソッド method を持たなければ nil を返します。

...を実行してクラス tname のインスタンスを返します。
val がメソッド method を持たなければ nil を返します。

type は、T_ARRAY, T_STRING などの構造体を表す ID です。
method の結果の型が type でなければ例外 TypeError が発生します。...