class LanguageServer::Protocol::Interface::NotebookCell
A notebook cell.
A cell’s document URI must be unique across ALL notebook cells and can therefore be used to uniquely identify a notebook cell or the cell’s text document.
Attributes
attributes[R]
Public Class Methods
new(kind:, document:, metadata: nil, execution_summary: nil)
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell.rb, line 12 def initialize(kind:, document:, metadata: nil, execution_summary: nil) @attributes = {} @attributes[:kind] = kind @attributes[:document] = document @attributes[:metadata] = metadata if metadata @attributes[:executionSummary] = execution_summary if execution_summary @attributes.freeze end
Public Instance Methods
document()
click to toggle source
The URI of the cell’s text document content.
@return [string]
# File lib/language_server/protocol/interface/notebook_cell.rb, line 36 def document attributes.fetch(:document) end
execution_summary()
click to toggle source
Additional execution summary information if supported by the client.
@return [ExecutionSummary]
# File lib/language_server/protocol/interface/notebook_cell.rb, line 53 def execution_summary attributes.fetch(:executionSummary) end
kind()
click to toggle source
The cell’s kind
@return [any]
# File lib/language_server/protocol/interface/notebook_cell.rb, line 27 def kind attributes.fetch(:kind) end
metadata()
click to toggle source
Additional metadata stored with the cell.
@return [LSPObject]
# File lib/language_server/protocol/interface/notebook_cell.rb, line 44 def metadata attributes.fetch(:metadata) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell.rb, line 59 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell.rb, line 63 def to_json(*args) to_hash.to_json(*args) end