Class: Dry::Effects::Effects::Fork

Inherits:
Module
  • Object
show all
Defined in:
lib/dry/effects/effects/fork.rb

Constant Summary collapse

Fork =
Effect.new(type: :fork)

Instance Method Summary collapse

Constructor Details

#initializeFork

Returns a new instance of Fork.



9
10
11
12
13
14
15
16
17
# File 'lib/dry/effects/effects/fork.rb', line 9

def initialize
  super

  module_eval("    def fork\n      yield(::Dry::Effects.yield(Fork))\n    end\n  RUBY\nend\n", __FILE__, __LINE__ + 1)