class LanguageServer::Protocol::Interface::DidOpenNotebookDocumentParams

The params sent in an open 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_open_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.

@return [TextDocumentItem

# File lib/language_server/protocol/interface/did_open_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 opened.

@return [NotebookDocument]

# File lib/language_server/protocol/interface/did_open_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_open_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_open_notebook_document_params.rb, line 40
def to_json(*args)
  to_hash.to_json(*args)
end