Class: UnboundMethod

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#parametersArray

returns the parameter information of this method

Returns:

  • (Array)


485
486
487
488
489
490
491
492
493
494
# File 'ext/methopara.c', line 485

static VALUE
rb_method_parameters(VALUE method)
{
    rb_iseq_t *iseq = get_method_iseq(method);
    if (!iseq) {
        return unnamed_parameters(
            FIX2INT(rb_funcall(method, rb_intern("arity"), 0)));
    }
    return rb_iseq_parameters(iseq, 0);
}