Sha256: 325d5785b68c4a14d5454c22db0a997e3d76315d61a1eb823c03cfd2febe6b55

Contents?: true

Size: 627 Bytes

Versions: 2

Compression:

Stored size: 627 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # Execute command registration options.
      #
      class ExecuteCommandRegistrationOptions
        def initialize(commands:)
          @attributes = {}

          @attributes[:commands] = commands

          @attributes.freeze
        end

        #
        # The commands to be executed on the server
        #
        # @return [string[]]
        def commands
          attributes.fetch(:commands)
        end

        attr_reader :attributes

        def to_json(*args)
          attributes.to_json(*args)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/execute_command_registration_options.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/execute_command_registration_options.rb