Sha256: 168c9226b48754599c6777a5bbffb2907b7a4dcb73a02a469c0af9f215bdf5dd

Contents?: true

Size: 214 Bytes

Versions: 8

Compression:

Stored size: 214 Bytes

Contents

# frozen_string_literal: true

module Dry
  module Effects
    module Constructors
      def self.register(name, &block)
        define_method(name, &block)
        module_function name
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dry-effects-0.3.0 lib/dry/effects/constructors.rb
dry-effects-0.2.0 lib/dry/effects/constructors.rb
dry-effects-0.1.5 lib/dry/effects/constructors.rb
dry-effects-0.1.4 lib/dry/effects/constructors.rb
dry-effects-0.1.3 lib/dry/effects/constructors.rb
dry-effects-0.1.2 lib/dry/effects/constructors.rb
dry-effects-0.1.1 lib/dry/effects/constructors.rb
dry-effects-0.1.0 lib/dry/effects/constructors.rb