Sha256: 0d025cf3a5932d220e474c2f1b238ac2748f6fb4e2e3d835ff33a33b939cca14

Contents?: true

Size: 845 Bytes

Versions: 111

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

111 entries across 111 versions & 13 rubygems

Version Path
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.16.0.3 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.16.0.2 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.16.0.1 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.15.0.2 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.15.0.1 lib/language_server/protocol/interface/workspace_folder.rb
language_server-protocol-3.15.0.0 lib/language_server/protocol/interface/workspace_folder.rb