class LanguageServer::Protocol::Interface::DidCloseTextDocumentParams
Attributes
attributes[R]
Public Class Methods
new(text_document:)
click to toggle source
# File lib/language_server/protocol/interface/did_close_text_document_params.rb, line 5 def initialize(text_document:) @attributes = {} @attributes[:textDocument] = text_document @attributes.freeze end
Public Instance Methods
text_document()
click to toggle source
The document that was closed.
@return [TextDocumentIdentifier]
# File lib/language_server/protocol/interface/did_close_text_document_params.rb, line 17 def text_document attributes.fetch(:textDocument) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/did_close_text_document_params.rb, line 23 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/did_close_text_document_params.rb, line 27 def to_json(*args) to_hash.to_json(*args) end