Method: Method#source_location

Defined in:
proc.c

#source_locationArray, 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).

Returns ].

Returns:



3040
3041
3042
3043
3044
# File 'proc.c', line 3040

VALUE
rb_method_location(VALUE method)
{
    return method_def_location(rb_method_def(method));
}