class LanguageServer::Protocol::Interface::NotebookCellTextDocumentFilter
A notebook cell text document filter denotes a cell text document by different properties.
Attributes
attributes[R]
Public Class Methods
new(notebook:, language: nil)
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb, line 9 def initialize(notebook:, language: nil) @attributes = {} @attributes[:notebook] = notebook @attributes[:language] = language if language @attributes.freeze end
Public Instance Methods
language()
click to toggle source
A language id like ‘python`.
Will be matched against the language id of the notebook cell document. ‘*’ matches every language.
@return [string]
# File lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb, line 36 def language attributes.fetch(:language) end
notebook()
click to toggle source
A filter that matches against the notebook containing the notebook cell. If a string value is provided it matches against the notebook type. ‘*’ matches every notebook.
@return [string | NotebookDocumentFilter]
# File lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb, line 25 def notebook attributes.fetch(:notebook) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb, line 42 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb, line 46 def to_json(*args) to_hash.to_json(*args) end