Module: Enumerable

Included in:
List
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_list(*args) ⇒ Object



176
177
178
179
180
181
182
183
# File 'ext/list/list.c', line 176

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;
}