lib/dry/monads/do/all.rb in dry-monads-1.3.4 vs lib/dry/monads/do/all.rb in dry-monads-1.3.5
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'dry/monads/do'
module Dry
module Monads
module Do
@@ -117,9 +119,10 @@
object.singleton_class.prepend(wrapper)
object.define_singleton_method(:singleton_method_added) do |method|
super(method)
next if method.equal?(:singleton_method_added)
+
Do.wrap_method(wrapper, method)
end
object.singleton_class.instance_methods(false).each do |m|
Do.wrap_method(wrapper, m)
end