class LanguageServer::Protocol::Interface::NotebookDocumentFilter
A notebook document filter denotes a notebook document by different properties.
Attributes
attributes[R]
Public Class Methods
new(notebook_type: nil, scheme: nil, pattern: nil)
click to toggle source
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 9 def initialize(notebook_type: nil, scheme: nil, pattern: nil) @attributes = {} @attributes[:notebookType] = notebook_type if notebook_type @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern if pattern @attributes.freeze end
Public Instance Methods
notebook_type()
click to toggle source
The type of the enclosing notebook.
— OR —
The type of the enclosing notebook.
— OR —
The type of the enclosing notebook.
@return [string]
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 31 def notebook_type attributes.fetch(:notebookType) end
pattern()
click to toggle source
A glob pattern.
— OR —
A glob pattern.
— OR —
A glob pattern.
@return [string]
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 63 def pattern attributes.fetch(:pattern) end
scheme()
click to toggle source
A Uri [scheme](Uri.scheme), like ‘file` or `untitled`.
— OR —
A Uri [scheme](Uri.scheme), like ‘file` or `untitled`.
— OR —
A Uri [scheme](Uri.scheme), like ‘file` or `untitled`.
@return [string]
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 47 def scheme attributes.fetch(:scheme) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 69 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/notebook_document_filter.rb, line 73 def to_json(*args) to_hash.to_json(*args) end