Class: UnboundMethod
- Inherits:
-
Object
- Object
- UnboundMethod
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#parameters ⇒ Array
returns the parameter information of this method.
Instance Method Details
#parameters ⇒ Array
returns the parameter information of this method
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);
}
|