Class: Xampl::TransactionWork

Inherits:
Object
  • Object
show all
Defined in:
lib/xamplr/persistence.rb

Class Method Summary collapse

Class Method Details

.setup_work(work) ⇒ Object



189
190
191
192
193
194
195
196
# File 'lib/xamplr/persistence.rb', line 189

def self.setup_work(work)
  begin
    define_method(:do_work, work)
    self.new.do_work
  ensure
    remove_method(:do_work)
  end
end