Class: LSP::DeleteFileOptions
Overview
export interface DeleteFileOptions
/**
* Delete the content recursively if a folder is denoted.
*/
recursive?: boolean;
/**
* Ignore the operation if the file doesn't exist.
*/
ignoreIfNotExists?: boolean;
Instance Attribute Summary collapse
-
#ignoreIfNotExists ⇒ Object
type: boolean # type: boolean.
-
#recursive ⇒ Object
type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DeleteFileOptions
constructor
A new instance of DeleteFileOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DeleteFileOptions
Returns a new instance of DeleteFileOptions.
546 547 548 549 |
# File 'lib/lsp/lsp_types.rb', line 546 def initialize(initial_hash = nil) super @optional_method_names = i[recursive ignoreIfNotExists] end |
Instance Attribute Details
#ignoreIfNotExists ⇒ Object
type: boolean # type: boolean
544 545 546 |
# File 'lib/lsp/lsp_types.rb', line 544 def ignoreIfNotExists @ignoreIfNotExists end |
#recursive ⇒ Object
type: boolean # type: boolean
544 545 546 |
# File 'lib/lsp/lsp_types.rb', line 544 def recursive @recursive end |
Instance Method Details
#from_h!(value) ⇒ Object
551 552 553 554 555 556 |
# File 'lib/lsp/lsp_types.rb', line 551 def from_h!(value) value = {} if value.nil? self.recursive = value['recursive'] # Unknown type self.ignoreIfNotExists = value['ignoreIfNotExists'] # Unknown type self end |