Sha256: f4ba0cfc870dae2aadee580732c710bcf9959a42fea323cc9dc6e616218405b2
Contents?: true
Size: 841 Bytes
Versions: 106
Compression:
Stored size: 841 Bytes
Contents
module LanguageServer module Protocol module Interface # # Provide inline value as text. # class InlineValueText def initialize(range:, text:) @attributes = {} @attributes[:range] = range @attributes[:text] = text @attributes.freeze end # # The document range for which the inline value applies. # # @return [Range] def range attributes.fetch(:range) end # # The text of the inline value. # # @return [string] def text attributes.fetch(:text) 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
106 entries across 106 versions & 15 rubygems