Sha256: ddf8e84821161bdfb3313958b777f73e20bc604078a54f1627affea074e519eb
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true require "dry/effects/effect" module Dry module Effects module Effects class Fork < ::Module Fork = Effect.new(type: :fork) def initialize super module_eval(<<~RUBY, __FILE__, __LINE__ + 1) def fork yield(::Dry::Effects.yield(Fork)) end RUBY end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-effects-0.3.0 | lib/dry/effects/effects/fork.rb |
dry-effects-0.2.0 | lib/dry/effects/effects/fork.rb |