class LanguageServer::Protocol::Interface::FileRename
Represents information on a file/folder rename.
Attributes
attributes[R]
Public Class Methods
new(old_uri:, new_uri:)
click to toggle source
# File lib/language_server/protocol/interface/file_rename.rb, line 8 def initialize(old_uri:, new_uri:) @attributes = {} @attributes[:oldUri] = old_uri @attributes[:newUri] = new_uri @attributes.freeze end
Public Instance Methods
new_uri()
click to toggle source
A file:// URI for the new location of the file/folder being renamed.
@return [string]
# File lib/language_server/protocol/interface/file_rename.rb, line 29 def new_uri attributes.fetch(:newUri) end
old_uri()
click to toggle source
A file:// URI for the original location of the file/folder being renamed.
@return [string]
# File lib/language_server/protocol/interface/file_rename.rb, line 21 def old_uri attributes.fetch(:oldUri) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/file_rename.rb, line 35 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/file_rename.rb, line 39 def to_json(*args) to_hash.to_json(*args) end