8th
Thu
エラー発生時に詳細なレポートをメールで報告させる方法
undefined method `<<' for nil:NilClass
posted by
genki
on Thu 8 Mar 2007
at 20:33
This article was migrated from http://rai
以下は、rb_iterate
static VALUE iterator_p roc(VALUE Pair, VALUE Arg, VALUE Self){
VALUE Key = RARRAY(Pair)->ptr[0];
VALUE Value = RARRAY(Pair)->ptr[1];
return Qnil;
}
rb_iterate (rb_each, Hash, iterator_p roc, Arg);
HashはiterateされるべきHash、
Argはイテレータ・ブロック関数に渡される任意のVALUEです。
This article was migrated from http://rai
This article was migrated from http://rai
This article was migrated from http://rai