class LanguageServer::Protocol::Interface::FileEvent
An event describing a file change.
Attributes
attributes[R]
Public Class Methods
new(uri:, type:)
click to toggle source
# File lib/language_server/protocol/interface/file_event.rb, line 8 def initialize(uri:, type:) @attributes = {} @attributes[:uri] = uri @attributes[:type] = type @attributes.freeze end
Public Instance Methods
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/file_event.rb, line 35 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/file_event.rb, line 39 def to_json(*args) to_hash.to_json(*args) end
type()
click to toggle source
The change type.
@return [number]
# File lib/language_server/protocol/interface/file_event.rb, line 29 def type attributes.fetch(:type) end
uri()
click to toggle source
The file's URI.
@return [string]
# File lib/language_server/protocol/interface/file_event.rb, line 21 def uri attributes.fetch(:uri) end