class LanguageServer::Protocol::Interface::FileCreate
Represents information on a file/folder create.
Attributes
attributes[R]
Public Class Methods
new(uri:)
click to toggle source
# File lib/language_server/protocol/interface/file_create.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_create.rb, line 26 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/file_create.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 created.
@return [string]
# File lib/language_server/protocol/interface/file_create.rb, line 20 def uri attributes.fetch(:uri) end