class LanguageServer::Protocol::Interface::RenameFile
Rename file operation
Attributes
attributes[R]
Public Class Methods
new(kind:, old_uri:, new_uri:, options: nil, annotation_id: nil)
click to toggle source
# File lib/language_server/protocol/interface/rename_file.rb, line 8 def initialize(kind:, old_uri:, new_uri:, options: nil, annotation_id: nil) @attributes = {} @attributes[:kind] = kind @attributes[:oldUri] = old_uri @attributes[:newUri] = new_uri @attributes[:options] = options if options @attributes[:annotationId] = annotation_id if annotation_id @attributes.freeze end
Public Instance Methods
annotation_id()
click to toggle source
An optional annotation identifer describing the operation.
@return [string]
# File lib/language_server/protocol/interface/rename_file.rb, line 56 def annotation_id attributes.fetch(:annotationId) end
kind()
click to toggle source
A rename
@return [“rename”]
# File lib/language_server/protocol/interface/rename_file.rb, line 24 def kind attributes.fetch(:kind) end
new_uri()
click to toggle source
The new location.
@return [string]
# File lib/language_server/protocol/interface/rename_file.rb, line 40 def new_uri attributes.fetch(:newUri) end
old_uri()
click to toggle source
The old (existing) location.
@return [string]
# File lib/language_server/protocol/interface/rename_file.rb, line 32 def old_uri attributes.fetch(:oldUri) end
options()
click to toggle source
Rename options.
@return [RenameFileOptions]
# File lib/language_server/protocol/interface/rename_file.rb, line 48 def options attributes.fetch(:options) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/rename_file.rb, line 62 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/rename_file.rb, line 66 def to_json(*args) to_hash.to_json(*args) end