Sha256: 0d025cf3a5932d220e474c2f1b238ac2748f6fb4e2e3d835ff33a33b939cca14
Contents?: true
Size: 845 Bytes
Versions: 110
Compression:
Stored size: 845 Bytes
Contents
module LanguageServer module Protocol module Interface class WorkspaceFolder def initialize(uri:, name:) @attributes = {} @attributes[:uri] = uri @attributes[:name] = name @attributes.freeze end # # The associated URI for this workspace folder. # # @return [string] def uri attributes.fetch(:uri) end # # The name of the workspace folder. Used to refer to this # workspace folder in the user interface. # # @return [string] def name attributes.fetch(:name) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
110 entries across 110 versions & 13 rubygems