class Prism::Relocation::Entry
first accessed.
An entry in a repository that will lazily reify its values when they are
def comments
def comments leading_comments.concat(trailing_comments) end
def end_character_column
def end_character_column fetch_value(:end_character_column) end
def end_character_offset
def end_character_offset fetch_value(:end_character_offset) end
def end_code_units_column
Fetch the end code units column of the value, for the encoding that was
def end_code_units_column fetch_value(:end_code_units_column) end
def end_code_units_offset
Fetch the end code units offset of the value, for the encoding that was
def end_code_units_offset fetch_value(:end_code_units_offset) end
def end_column
def end_column fetch_value(:end_column) end
def end_line
def end_line fetch_value(:end_line) end
def end_offset
def end_offset fetch_value(:end_offset) end
def fetch_value(name)
def fetch_value(name) values.fetch(name) do raise MissingValueError, "No value for #{name}, make sure the " \ "repository has been properly configured" end end
def filepath
def filepath fetch_value(:filepath) end
def initialize(repository)
def initialize(repository) @repository = repository @values = nil end
def leading_comments
def leading_comments fetch_value(:leading_comments) end
def reify!(values) # :nodoc:
reify the values.
internal-only API that is called from the repository when it is time to
Reify the values on this entry with the given values. This is an
def reify!(values) # :nodoc: @repository = nil @values = values end
def start_character_column
def start_character_column fetch_value(:start_character_column) end
def start_character_offset
def start_character_offset fetch_value(:start_character_offset) end
def start_code_units_column
Fetch the start code units column of the value, for the encoding that
def start_code_units_column fetch_value(:start_code_units_column) end
def start_code_units_offset
Fetch the start code units offset of the value, for the encoding that
def start_code_units_offset fetch_value(:start_code_units_offset) end
def start_column
def start_column fetch_value(:start_column) end
def start_line
def start_line fetch_value(:start_line) end
def start_offset
def start_offset fetch_value(:start_offset) end
def trailing_comments
def trailing_comments fetch_value(:trailing_comments) end
def values
def values @values || (@repository.reify!; @values) end