class LanguageServer::Protocol::Interface::DidCloseNotebookDocumentParams
The params sent in a close notebook document notification.
Attributes
attributes[R]
Public Class Methods
new(notebook_document:, cell_text_documents:)
click to toggle source
# File lib/language_server/protocol/interface/did_close_notebook_document_params.rb, line 8 def initialize(notebook_document:, cell_text_documents:) @attributes = {} @attributes[:notebookDocument] = notebook_document @attributes[:cellTextDocuments] = cell_text_documents @attributes.freeze end
Public Instance Methods
cell_text_documents()
click to toggle source
The text documents that represent the content of a notebook cell that got closed.
@return [TextDocumentIdentifier
# File lib/language_server/protocol/interface/did_close_notebook_document_params.rb, line 30 def cell_text_documents attributes.fetch(:cellTextDocuments) end
notebook_document()
click to toggle source
The notebook document that got closed.
@return [NotebookDocumentIdentifier]
# File lib/language_server/protocol/interface/did_close_notebook_document_params.rb, line 21 def notebook_document attributes.fetch(:notebookDocument) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/did_close_notebook_document_params.rb, line 36 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/did_close_notebook_document_params.rb, line 40 def to_json(*args) to_hash.to_json(*args) end