lib/dry/behaviour/black_tie.rb in dry-behaviour-0.11.0 vs lib/dry/behaviour/black_tie.rb in dry-behaviour-0.11.1
- old
+ new
@@ -123,9 +123,10 @@
end
end.each do |m|
target = [target] unless target.is_a?(Array)
target.each do |tgt|
ok =
+ mds.map(&:first).include?(m) ||
[
BlackTie.protocols[protocol][m],
mod.method(m).parameters.reject { |_, v| v.to_s[/\A♿_/] }
].map(&:first).reduce(:==)