3件ヒット
[1-3件を表示]
(0.142秒)
キーワード
-
rb
_ check _ convert _ type (1) -
rb
_ convert _ type (1)
検索結果
先頭3件
-
static VALUE convert
_ type(VALUE val , const char *tname , const char *method , int raise) (114901.0) -
-
VALUE rb
_ check _ convert _ type(VALUE val , int type , const char *tname , const char *method) (19501.0) -
val.method を実行してクラス tname のインスタンスを返します。 val がメソッド method を持たなければ nil を返します。
val.method を実行してクラス tname のインスタンスを返します。
val がメソッド method を持たなければ nil を返します。
type は、T_ARRAY, T_STRING などの構造体を表す ID です。
method の結果の型が type でなければ例外 TypeError が発生します。 -
VALUE rb
_ convert _ type(VALUE val , int type , const char *tname , const char *method) (19501.0) -
オブジェクト val をクラス type のインスタンスに変換します。 変換には、val.method の戻り値が使われます。
オブジェクト val をクラス type のインスタンスに変換します。
変換には、val.method の戻り値が使われます。
val がもともと type クラスのインスタンスなら val を
そのまま返します。