Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Prism::Location.new

new(source, start_offset, length)

Create a new location object with the given source, start byte offset, and byte length.

See also #== #adjoin also in 4.0 · 3.3