Sha256: 64573368b75fa869f31a72c95fbbfc5b62535e6836368f22884c9dfc440514f9
Contents?: true
Size: 920 Bytes
Versions: 119
Compression:
Stored size: 920 Bytes
Contents
module LanguageServer module Protocol module Interface class TextEdit def initialize(range:, new_text:) @attributes = {} @attributes[:range] = range @attributes[:newText] = new_text @attributes.freeze end # # The range of the text document to be manipulated. To insert # text into a document create a range where start === end. # # @return [Range] def range attributes.fetch(:range) end # # The string to be inserted. For delete operations use an # empty string. # # @return [string] def new_text attributes.fetch(:newText) 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
119 entries across 119 versions & 15 rubygems