Class: LanguageServer::Protocol::Interface::NotebookDocumentIdentifier
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::NotebookDocumentIdentifier
- Defined in:
- lib/language_server/protocol/interface/notebook_document_identifier.rb
Overview
A literal to identify a notebook document in the client.
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(uri:) ⇒ NotebookDocumentIdentifier
constructor
A new instance of NotebookDocumentIdentifier.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
-
#uri ⇒ URI
The notebook document’s uri.
Constructor Details
#initialize(uri:) ⇒ NotebookDocumentIdentifier
Returns a new instance of NotebookDocumentIdentifier.
10 11 12 13 14 15 16 |
# File 'lib/language_server/protocol/interface/notebook_document_identifier.rb', line 10 def initialize(uri:) @attributes = {} @attributes[:uri] = uri @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
26 27 28 |
# File 'lib/language_server/protocol/interface/notebook_document_identifier.rb', line 26 def attributes @attributes end |
Instance Method Details
#to_hash ⇒ Object
28 29 30 |
# File 'lib/language_server/protocol/interface/notebook_document_identifier.rb', line 28 def to_hash attributes end |
#to_json(*args) ⇒ Object
32 33 34 |
# File 'lib/language_server/protocol/interface/notebook_document_identifier.rb', line 32 def to_json(*args) to_hash.to_json(*args) end |
#uri ⇒ URI
The notebook document’s uri.
22 23 24 |
# File 'lib/language_server/protocol/interface/notebook_document_identifier.rb', line 22 def uri attributes.fetch(:uri) end |