Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Ruby::SourceRange#absolute_path
source_range.absolute_path → String or nil
proc.c
View on GitHub ↗
static VALUE
source_range_absolute_path(VALUE self)
{
return source_range_data_get(self)->absolute_path;
}
Returns the absolute source path for the callable associated with this source range, or nil if the source has no absolute path, such as eval’d code.