Sha256: bd602b6b37abfd8ab1d194c7614d4f05ae78027ecae9afb6ea4b3aa7b5e5baee
Contents?: true
Size: 580 Bytes
Versions: 7
Compression:
Stored size: 580 Bytes
Contents
module LanguageServer module Protocol module Interfaces class Location def initialize(uri:, range:) @attributes = {} @attributes[:uri] = uri @attributes[:range] = range @attributes.freeze end # @return [string] def uri attributes.fetch(:uri) end # @return [Range] def range attributes.fetch(:range) 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