Module: Dry::Monads::ConversionStubs Private
- Defined in:
- lib/dry/monads/conversion_stubs.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Methods
Class Method Summary collapse
- .[](*method_names) ⇒ Object private
Class Method Details
.[](*method_names) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 11 12 13 14 |
# File 'lib/dry/monads/conversion_stubs.rb', line 6 def self.[](*method_names) Module.new do method_names.each do |name| define_method(name) do |*| Methods.public_send(name) end end end end |