instance method
Proc#source_location
() -> [ ::String, ::Integer ]?
prc.source_location → [String, Integer, Integer, Integer, Integer]
proc.c
View on GitHub ↗
VALUE
rb_proc_location(VALUE self)
{
return iseq_location(rb_proc_get_iseq(self, 0));
}
Returns the location where the Proc was defined. The returned Array contains:
(1) the Ruby source filename (2) the line number where the definition starts (3) the column number where the definition starts (4) the line number where the definition ends (5) the column number where the definitions ends
This method will return nil if the Proc was not defined in Ruby (i.e. native).