Skip to content

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

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.