Method: Method#source_location
- Defined in:
- proc.c
#source_location ⇒ Array, Integer
Returns the Ruby source filename and line number containing this method or nil if this method was not defined in Ruby (i.e. native).
2733 2734 2735 2736 2737 |
# File 'proc.c', line 2733
VALUE
rb_method_location(VALUE method)
{
return method_def_location(rb_method_def(method));
}
|