Sha256: 32c43658d6a956e8d8a5a8ac077d02db9c8c06decd7a35bcf520805ff16d82d7

Contents?: true

Size: 704 Bytes

Versions: 108

Compression:

Stored size: 704 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # Client capabilities for the show document request.
      #
      class ShowDocumentClientCapabilities
        def initialize(support:)
          @attributes = {}

          @attributes[:support] = support

          @attributes.freeze
        end

        #
        # The client has support for the show document
        # request.
        #
        # @return [boolean]
        def support
          attributes.fetch(:support)
        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

108 entries across 108 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/show_document_client_capabilities.rb
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.16.0.3 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.16.0.2 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.16.0.1 lib/language_server/protocol/interface/show_document_client_capabilities.rb
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/show_document_client_capabilities.rb