Sha256: 521bf2f1351beaa6ab1542ab71d34ee970d9ad057ff037fff9599933916d2ccb

Contents?: true

Size: 705 Bytes

Versions: 110

Compression:

Stored size: 705 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class ExecuteCommandClientCapabilities
        def initialize(dynamic_registration: nil)
          @attributes = {}

          @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration

          @attributes.freeze
        end

        #
        # Execute command supports dynamic registration.
        #
        # @return [boolean]
        def dynamic_registration
          attributes.fetch(:dynamicRegistration)
        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

Version Path
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.16.0.3 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.16.0.2 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.16.0.1 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.15.0.2 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.15.0.1 lib/language_server/protocol/interface/execute_command_client_capabilities.rb
language_server-protocol-3.15.0.0 lib/language_server/protocol/interface/execute_command_client_capabilities.rb