Sha256: 60d5690b7638251cbc70589fe67e143f3b1458701eb6b45641b1df8740a9905e
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true require "dry/effects/instruction" module Dry module Effects module Instructions class Execute < Instruction attr_reader :block def initialize(block) super() @block = block end def call block.call end end def self.Execute(&block) Execute.new(block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-effects-0.3.0 | lib/dry/effects/instructions/execute.rb |
dry-effects-0.2.0 | lib/dry/effects/instructions/execute.rb |