Module: Enumerable

Included in:
List
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_list(*args) ⇒ Object



147
148
149
150
151
152
153
154
# File 'ext/list/list.c', line 147

static VALUE
ary_to_list(int argc, VALUE *argv, VALUE obj)
{
	VALUE list = list_new();
	rb_block_call(obj, id_each, argc, argv, collect_all, list);
	OBJ_INFECT(list, obj);
	return list;
}