Sha256: 5dc1f08459f0507e8e6206d251cfdd26b510d7554c191a844f279385e21ffc51
Contents?: true
Size: 815 Bytes
Versions: 5
Compression:
Stored size: 815 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. Defaults to the # uri's basename. # # @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
5 entries across 5 versions & 1 rubygems