Sha256: e0ff20444c298eca6db79ac5bcc8423e85eb6c57b783371d6aff7519675417d0
Contents?: true
Size: 779 Bytes
Versions: 117
Compression:
Stored size: 779 Bytes
Contents
module LanguageServer module Protocol module Interface # # 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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
117 entries across 117 versions & 13 rubygems