Sha256: adca50d13b02a676128f8cd8edf7fefad1fc495888333675a02c64f3111666a8
Contents?: true
Size: 870 Bytes
Versions: 7
Compression:
Stored size: 870 Bytes
Contents
module LanguageServer module Protocol module Interfaces 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_json(*args) attributes.to_json(*args) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems