Module: FastMethodSource::MethodExtensions

Included in:
Method
Defined in:
ext/fast_method_source/fast_method_source.c

Instance Method Summary collapse

Instance Method Details

#commentObject



477
478
479
480
481
482
483
484
485
486
487
# File 'ext/fast_method_source/fast_method_source.c', line 477

static VALUE
mMethodExtensions_comment(VALUE self)
{
    struct method_data data;
    method_data_init(self, &data);

    VALUE comment = find_method_comment(&data);
    raise_if_nil(comment, data.method_name);

    return comment;
}

#sourceObject



465
466
467
468
469
470
471
472
473
474
475
# File 'ext/fast_method_source/fast_method_source.c', line 465

static VALUE
mMethodExtensions_source(VALUE self)
{
    struct method_data data;
    method_data_init(self, &data);

    VALUE source = find_method_source(&data);
    raise_if_nil(source, data.method_name);

    return source;
}