Sha256: c2e36d581a4fc00198b7256f6bba51b3e54583de5a23c0e0fd6acf1915163da5
Contents?: true
Size: 986 Bytes
Versions: 6
Compression:
Stored size: 986 Bytes
Contents
module LanguageServer module Protocol module Interface # # Delete file operation # class DeleteFile def initialize(kind:, uri:, options: nil) @attributes = {} @attributes[:kind] = kind @attributes[:uri] = uri @attributes[:options] = options if options @attributes.freeze end # # A delete # # @return ["delete"] def kind attributes.fetch(:kind) end # # The file to delete. # # @return [string] def uri attributes.fetch(:uri) end # # Delete options. # # @return [DeleteFileOptions] def options attributes.fetch(:options) 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