class LanguageServer::Protocol::Interface::TextDocumentIdentifier

Attributes

attributes[R]

Public Class Methods

new(uri:) click to toggle source
# File lib/language_server/protocol/interface/text_document_identifier.rb, line 5
def initialize(uri:)
  @attributes = {}

  @attributes[:uri] = uri

  @attributes.freeze
end

Public Instance Methods

to_hash() click to toggle source
# File lib/language_server/protocol/interface/text_document_identifier.rb, line 23
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/text_document_identifier.rb, line 27
def to_json(*args)
  to_hash.to_json(*args)
end
uri() click to toggle source

The text document's URI.

@return [string]

# File lib/language_server/protocol/interface/text_document_identifier.rb, line 17
def uri
  attributes.fetch(:uri)
end