Class: LSP::TextDocumentIdentifier

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_types.rb

Overview

export interface TextDocumentIdentifier

/**
 * The text document's uri.
 */
uri: DocumentUri;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#uriObject

type: DocumentUri



665
666
667
# File 'lib/lsp/lsp_types.rb', line 665

def uri
  @uri
end

Instance Method Details

#from_h!(value) ⇒ Object



667
668
669
670
671
# File 'lib/lsp/lsp_types.rb', line 667

def from_h!(value)
  value = {} if value.nil?
  self.uri = value['uri'] # Unknown type
  self
end