Class: Exa::Copier
Instance Method Summary collapse
-
#initialize(source, target) ⇒ Copier
constructor
A new instance of Copier.
- #perform! ⇒ Object
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 |