method

initialize_copy

Importance_0
v2_1_10 - Show latest stable - 0 notes - Class: ARGF
initialize_copy(p1) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
argf_initialize_copy(VALUE argf, VALUE orig)
{
    if (!OBJ_INIT_COPY(argf, orig)) return argf;
    ARGF = argf_of(orig);
    ARGF.argv = rb_obj_dup(ARGF.argv);
    if (ARGF.inplace) {
        const char *inplace = ARGF.inplace;
        ARGF.inplace = 0;
        ARGF.inplace = ruby_strdup(inplace);
    }
    return argf;
}
Register or log in to add new notes.