Module: FastMethodSource::MethodExtensions
- Included in:
- Method
- Defined in:
- ext/fast_method_source/fast_method_source.c
Instance Method Summary collapse
Instance Method Details
#comment ⇒ Object
497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'ext/fast_method_source/fast_method_source.c', line 497
static VALUE
mMethodExtensions_comment(VALUE self)
{
struct filebuf filebuf;
filebuf_init(self, &filebuf);
read_lines_before(&filebuf);
VALUE comment = find_comment(&filebuf);
free_filebuf(comment, &filebuf);
return comment;
}
|
#source ⇒ Object
482 483 484 485 486 487 488 489 490 491 492 493 494 495 |
# File 'ext/fast_method_source/fast_method_source.c', line 482
static VALUE
mMethodExtensions_source(VALUE self)
{
struct filebuf filebuf;
filebuf_init(self, &filebuf);
read_lines_after(&filebuf);
VALUE source = find_source(&filebuf);
free_filebuf(source, &filebuf);
return source;
}
|