Class: NodeRb::BackWorker

Inherits:
Thread
  • Object
show all
Defined in:
lib/noderb/defer.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ BackWorker

Returns a new instance of BackWorker.



5
6
7
8
9
# File 'lib/noderb/defer.rb', line 5

def initialize block
  super do
    block.call
  end
end