Sha256: cca2522516e9b0d6e157d20a39a6b03c57775493797b846b265e467eec1a3a89
Contents?: true
Size: 729 Bytes
Versions: 7
Compression:
Stored size: 729 Bytes
Contents
module LanguageServer module Protocol module Interfaces # # An event describing a file change. # class FileEvent def initialize(uri:, type:) @attributes = {} @attributes[:uri] = uri @attributes[:type] = type @attributes.freeze end # # The file's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The change type. # # @return [number] def type attributes.fetch(:type) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems