On this page
class · Ruby 4.0
Prism::Location
This represents a location in the source.
Class methods 1
Instance methods 34
#==
#adjoin
#cached_end_code_units_column
#cached_end_code_units_offset
#cached_start_code_units_column
#cached_start_code_units_offset
#chop
#comments
#copy
#deconstruct_keys
#end_character_column
#end_character_offset
#end_code_units_column
#end_code_units_offset
#end_column
#end_line
#end_offset
#inspect
#join
#leading_comment
#leading_comments
#pretty_print
#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.