Class: Exa::Copier

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

Instance Method Summary collapse

Methods inherited from Process

#register, #run!, table, #unregister

Constructor Details

#initialize(source, target) ⇒ Copier

Returns a new instance of Copier.



31
32
33
34
35
# File 'lib/exa.rb', line 31

def initialize(source, target)
  @source = source
  @target = target
  super("copy #{source} -> #{target}")
end

Instance Method Details

#perform!Object



37
38
39
# File 'lib/exa.rb', line 37

def perform!
  @target.update @source.value
end