Module: FastMethodSource::MethodExtensions

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

Instance Method Summary collapse

Instance Method Details

#commentObject



360
361
362
363
364
365
366
367
368
369
370
# File 'ext/fast_method_source/fast_method_source.c', line 360

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



348
349
350
351
352
353
354
355
356
357
358
# File 'ext/fast_method_source/fast_method_source.c', line 348

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;
}