Method: Method#source_location

Defined in:
proc.c

#source_locationArray, Fixnum

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:



2382
2383
2384
2385
2386
# File 'proc.c', line 2382

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