class LanguageServer::Protocol::Interface::DeleteFileOptions
Delete file options
Attributes
attributes[R]
Public Class Methods
new(recursive: nil, ignore_if_not_exists: nil)
click to toggle source
# File lib/language_server/protocol/interface/delete_file_options.rb, line 8 def initialize(recursive: nil, ignore_if_not_exists: nil) @attributes = {} @attributes[:recursive] = recursive if recursive @attributes[:ignoreIfNotExists] = ignore_if_not_exists if ignore_if_not_exists @attributes.freeze end
Public Instance Methods
ignore_if_not_exists()
click to toggle source
Ignore the operation if the file doesn't exist.
@return [boolean]
# File lib/language_server/protocol/interface/delete_file_options.rb, line 29 def ignore_if_not_exists attributes.fetch(:ignoreIfNotExists) end
recursive()
click to toggle source
Delete the content recursively if a folder is denoted.
@return [boolean]
# File lib/language_server/protocol/interface/delete_file_options.rb, line 21 def recursive attributes.fetch(:recursive) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/delete_file_options.rb, line 35 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/delete_file_options.rb, line 39 def to_json(*args) to_hash.to_json(*args) end