Skip to content

Commit

Permalink
fix: failing method inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Aug 26, 2024
1 parent d55ae76 commit 5f7484a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/typelizer/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def read_serializers(files = nil)
files.each do |file|
trace = TracePoint.new(:call) do |tp|
begin
next unless tp.self.respond_to?(:typelizer_interface) && !tp.self.send(:respond_to_missing?, :typelizer_interface, false)
next unless tp.self.methods.include?(:typelizer_interface)
rescue WeakRef::RefError
next
end
Expand Down

0 comments on commit 5f7484a

Please sign in to comment.