Sha256: a8006cb9f05b258950242d744b0af9c79f492ce377e74688a2e1a099eef38636

Contents?: true

Size: 634 Bytes

Versions: 6

Compression:

Stored size: 634 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class InitializeResult
        def initialize(capabilities:)
          @attributes = {}

          @attributes[:capabilities] = capabilities

          @attributes.freeze
        end

        #
        # The capabilities the language server provides.
        #
        # @return [ServerCapabilities]
        def capabilities
          attributes.fetch(:capabilities)
        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

6 entries across 6 versions & 1 rubygems

Version Path
language_server-protocol-3.14.0.2 lib/language_server/protocol/interface/initialize_result.rb
language_server-protocol-3.14.0.1 lib/language_server/protocol/interface/initialize_result.rb
language_server-protocol-3.14.0.0 lib/language_server/protocol/interface/initialize_result.rb
language_server-protocol-3.12.0.0 lib/language_server/protocol/interface/initialize_result.rb
language_server-protocol-3.7.0.0 lib/language_server/protocol/interface/initialize_result.rb
language_server-protocol-0.5.0 lib/language_server/protocol/interface/initialize_result.rb