On this page
Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class · Ruby 4.1
Ruby::Prism::Location
This represents a location in the source.
Class methods 1
Instance methods 31
#==
#adjoin
#cached_end_code_units_column
#cached_end_code_units_offset
#cached_start_code_units_column
#cached_start_code_units_offset
#chop
#comments
#copy
#end_character_column
#end_character_offset
#end_code_units_column
#end_code_units_offset
#end_column
#end_line
#end_offset
#join
#leading_comment
#leading_comments
#slice
#slice_lines
#source_lines
#start_character_column
#start_character_offset
#start_code_units_column
#start_code_units_offset
#start_column
#start_line
#start_line_slice
#trailing_comment
#trailing_comments
Attributes
Read
The length of this location in bytes.
Read
A Source object that is used to determine more information from the given offset and length.
Read
The byte offset from the beginning of the source where this location starts.