class LanguageServer::Protocol::Interface::FileDelete

Represents information on a file/folder delete.

Attributes

attributes[R]

Public Class Methods

new(uri:) click to toggle source
# File lib/language_server/protocol/interface/file_delete.rb, line 8
def initialize(uri:)
  @attributes = {}

  @attributes[:uri] = uri

  @attributes.freeze
end

Public Instance Methods

to_hash() click to toggle source
# File lib/language_server/protocol/interface/file_delete.rb, line 26
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/file_delete.rb, line 30
def to_json(*args)
  to_hash.to_json(*args)
end
uri() click to toggle source

A file:// URI for the location of the file/folder being deleted.

@return [string]

# File lib/language_server/protocol/interface/file_delete.rb, line 20
def uri
  attributes.fetch(:uri)
end