method
initialize_copy
v1_8_7_330 -
Show latest stable
-
0 notes -
Class: Enumerable::Enumerator
- 1_8_6_287
- 1_8_7_72 (0)
- 1_8_7_330 (0)
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
initialize_copy(p1)
public
Hide source
/* :nodoc: */ static VALUE enumerator_init_copy(obj, orig) VALUE obj; VALUE orig; { struct enumerator *ptr0, *ptr1; ptr0 = enumerator_ptr(orig); Data_Get_Struct(obj, struct enumerator, ptr1); if (!ptr1) { rb_raise(rb_eArgError, "unallocated enumerator"); } ptr1->obj = ptr0->obj; ptr1->meth = ptr0->meth; ptr1->iter = ptr0->iter; ptr1->args = ptr0->args; return obj; }