Sha256: eddd7f46fc682be21fd06ea66b76484ab17a7770644b6a5d3d8115b67a6f9b4c

Contents?: true

Size: 602 Bytes

Versions: 2

Compression:

Stored size: 602 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # Execute command options.
      #
      class ExecuteCommandOptions
        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_options.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/execute_command_options.rb