Module: FastMethodSource::MethodExtensions

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

Instance Method Summary collapse

Instance Method Details

#commentObject



373
374
375
376
377
378
379
380
381
382
383
# File 'ext/fast_method_source/fast_method_source.c', line 373

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



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

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