Sha256: 7ea3684f0222e9d9a0c56a7ffe03d1777c5ee7fa5e25751498c2fb7ba5581175
Contents?: true
Size: 630 Bytes
Versions: 117
Compression:
Stored size: 630 Bytes
Contents
module LanguageServer module Protocol module Interface 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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
117 entries across 117 versions & 13 rubygems