Sha256: 484a6ba1dda20a170b4d48b0e33168fc2d6b211b6c377e3af381ac2a61e346d1
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
module Dry # Declares arguments of the initializer (params and options) # # @api public # module Initializer require_relative "initializer/errors" require_relative "initializer/argument" require_relative "initializer/arguments" require_relative "initializer/builder" require_relative "initializer/mixin" def self.define(proc = nil, &block) Module.new do |container| container.extend Dry::Initializer::Mixin container.instance_exec(&(proc || block)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-initializer-0.1.1 | lib/dry/initializer.rb |