Sha256: 3360d937540620efeb89ca8e18f31ff29edb62a930e5553086947dbf90a2cc7e
Contents?: true
Size: 856 Bytes
Versions: 6
Compression:
Stored size: 856 Bytes
Contents
module LanguageServer module Protocol module Interface class ExecuteCommandParams def initialize(command:, arguments: nil) @attributes = {} @attributes[:command] = command @attributes[:arguments] = arguments if arguments @attributes.freeze end # # The identifier of the actual command handler. # # @return [string] def command attributes.fetch(:command) end # # Arguments that the command should be invoked with. # # @return [any[]] def arguments attributes.fetch(:arguments) 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