Class: LSP::WorkspaceFolder

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

Overview

export interface WorkspaceFolder { /** * The associated URI for this workspace folder. / uri: string; /* * The name of the workspace folder. Used to refer to this * workspace folder in the user interface. */ name: string; }

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

#nameObject

type: string # type: string



125
126
127
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 125

def name
  @name
end

#uriObject

type: string # type: string



125
126
127
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 125

def uri
  @uri
end

Instance Method Details

#from_h!(value) ⇒ Object



127
128
129
130
131
132
# File 'lib/lsp/lsp_protocol_workspacefolders.rb', line 127

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