class LanguageServer::Protocol::Interface::WorkspaceFolder
Attributes
attributes[R]
Public Class Methods
new(uri:, name:)
click to toggle source
# File lib/language_server/protocol/interface/workspace_folder.rb, line 5 def initialize(uri:, name:) @attributes = {} @attributes[:uri] = uri @attributes[:name] = name @attributes.freeze end
Public Instance Methods
name()
click to toggle source
The name of the workspace folder. Used to refer to this workspace folder in the user interface.
@return [string]
# File lib/language_server/protocol/interface/workspace_folder.rb, line 27 def name attributes.fetch(:name) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/workspace_folder.rb, line 33 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/workspace_folder.rb, line 37 def to_json(*args) to_hash.to_json(*args) end
uri()
click to toggle source
The associated URI for this workspace folder.
@return [string]
# File lib/language_server/protocol/interface/workspace_folder.rb, line 18 def uri attributes.fetch(:uri) end