Module: Dry::Monads::ConversionStubs

Defined in:
lib/dry/monads/conversion_stubs.rb

Defined Under Namespace

Modules: Methods

Class Method Summary collapse

Class Method Details

.[](*method_names) ⇒ Object


4
5
6
7
8
9
10
11
12
# File 'lib/dry/monads/conversion_stubs.rb', line 4

def self.[](*method_names)
  Module.new do
    method_names.each do |name|
      define_method(name) do |*|
        Methods.public_send(name)
      end
    end
  end
end