Sha256: 926e06b5cba3bcb4b5265f50e892cd5ab43a395ca1bfcf49a3e7e80eb1a2534f
Contents?: true
Size: 878 Bytes
Versions: 7
Compression:
Stored size: 878 Bytes
Contents
module LanguageServer module Protocol module Interfaces # # The parameters send in a will save text document notification. # class WillSaveTextDocumentParams def initialize(text_document:, reason:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:reason] = reason @attributes.freeze end # # The document that will be saved. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The 'TextDocumentSaveReason'. # # @return [number] def reason attributes.fetch(:reason) 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