Sha256: fbc064ab022852507258488708ccbddfbdad48d4cc3ec403bee1f8cb71910541
Contents?: true
Size: 1.11 KB
Versions: 104
Compression:
Stored size: 1.11 KB
Contents
module LanguageServer module Protocol module Interface class LinkedEditingRanges def initialize(ranges:, word_pattern: nil) @attributes = {} @attributes[:ranges] = ranges @attributes[:wordPattern] = word_pattern if word_pattern @attributes.freeze end # # A list of ranges that can be renamed together. The ranges must have # identical length and contain identical text content. The ranges cannot # overlap. # # @return [Range[]] def ranges attributes.fetch(:ranges) end # # An optional word pattern (regular expression) that describes valid # contents for the given ranges. If no pattern is provided, the client # configuration's word pattern will be used. # # @return [string] def word_pattern attributes.fetch(:wordPattern) 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
104 entries across 104 versions & 13 rubygems