fixup! Removed `to_ary` conversion method.

parent 16e8f878
......@@ -199,7 +199,7 @@ MRB_API void mrb_ary_set(mrb_state *mrb, mrb_value ary, mrb_int n, mrb_value val
* @param other The array to replace it with.
*/
MRB_API void mrb_ary_replace(mrb_state *mrb, mrb_value self, mrb_value other);
MRB_API mrb_value mrb_array_type(mrb_state *mrb, mrb_value self);
MRB_API mrb_value mrb_ensure_array_type(mrb_state *mrb, mrb_value self);
MRB_API mrb_value mrb_check_array_type(mrb_state *mrb, mrb_value self);
/*
......
......@@ -1072,7 +1072,7 @@ mrb_ary_splat(mrb_state *mrb, mrb_value v)
if (mrb_nil_p(a)) {
return mrb_ary_new_from_values(mrb, 1, &v);
}
mrb_array_type(mrb, a);
mrb_ensure_array_type(mrb, a);
return a;
}
......
......@@ -607,7 +607,7 @@ mrb_check_string_type(mrb_state *mrb, mrb_value str)
}
MRB_API mrb_value
mrb_array_type(mrb_state *mrb, mrb_value ary)
mrb_ensure_array_type(mrb_state *mrb, mrb_value ary)
{
if (!mrb_array_p(ary)) {
mrb_raisef(mrb, E_TYPE_ERROR, "%S cannot be converted to Array",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment