Class: Exa::Deleter
Instance Method Summary collapse
-
#initialize(target) ⇒ Deleter
constructor
A new instance of Deleter.
- #perform! ⇒ Object
Methods inherited from Process
#register, #run!, table, #unregister
Constructor Details
#initialize(target) ⇒ Deleter
Returns a new instance of Deleter.
43 44 45 46 |
# File 'lib/exa.rb', line 43 def initialize(target) @target = target super("delete #{target}") end |
Instance Method Details
#perform! ⇒ Object
48 49 50 |
# File 'lib/exa.rb', line 48 def perform! @target.parent.remove_child(child_name: @target.name) end |