lib/orthoses/constant.rb in orthoses-1.16.0 vs lib/orthoses/constant.rb in orthoses-1.17.0
- old
+ new
@@ -28,9 +28,10 @@
next if Utils.module_name(current).nil?
next if cache[[current, const]]
cache[[current, const]] = true
if val.kind_of?(Module)
+ next unless @if.nil? || @if.call(current, const, val, nil)
will_add_key_and_content << [Utils.module_name(val), nil]
next
end
rbs = Orthoses::Utils.object_to_rbs(val, strict: @strict)