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::Prism::Location#cached_start_code_units_offset

cached_start_code_units_offset(cache)

The start offset from the start of the file in code units using the given cache to fetch or calculate the value.

: (_CodeUnitsCache cache) -> Integer