Sha256: 2b80df229917c0b4d638e66f51866108a876adc446c5190705d6dfc7e8a0e1fb

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class DidCloseTextDocumentParams
        def initialize(text_document:)
          @attributes = {}

          @attributes[:textDocument] = text_document

          @attributes.freeze
        end

        #
        # The document that was closed.
        #
        # @return [TextDocumentIdentifier]
        def text_document
          attributes.fetch(:textDocument)
        end

        attr_reader :attributes

        def to_json(*args)
          attributes.to_json(*args)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/did_close_text_document_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/did_close_text_document_params.rb