Sha256: 4ad7254537e11f7f5de476d84c9809eed6e7c6225f0286e8c371c42d31c99266
Contents?: true
Size: 993 Bytes
Versions: 6
Compression:
Stored size: 993 Bytes
Contents
module LanguageServer module Protocol module Interface # # Create file operation # class CreateFile def initialize(kind:, uri:, options: nil) @attributes = {} @attributes[:kind] = kind @attributes[:uri] = uri @attributes[:options] = options if options @attributes.freeze end # # A create # # @return ["create"] def kind attributes.fetch(:kind) end # # The resource to create. # # @return [string] def uri attributes.fetch(:uri) end # # Additional options # # @return [CreateFileOptions] 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