Sha256: 79dcdcb639ffb08679a5757b7b83c7cce45a2908a2e4d650fd7cc2f5e96d85e1
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
module LanguageServer module Protocol module Interfaces class Range def initialize(start:, end:) @attributes = {} @attributes[:start] = start @attributes[:end] = binding.local_variable_get(:end) @attributes.freeze end # # The range's start position. # # @return [Position] def start attributes.fetch(:start) end # # The range's end position. # # @return [Position] def end attributes.fetch(:end) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems