Class: Exa::Deleter

Inherits:
Process show all
Defined in:
lib/exa.rb

Instance Method Summary collapse

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