From b5b91c692740fab42bb2841debebaa66f853e395 Mon Sep 17 00:00:00 2001 From: Josh Menden Date: Wed, 30 Oct 2024 22:39:11 -0600 Subject: [PATCH] Use respond_to_missing? instead of respond_to? --- lib/logstop/formatter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logstop/formatter.rb b/lib/logstop/formatter.rb index ce5651a..1a69a7b 100644 --- a/lib/logstop/formatter.rb +++ b/lib/logstop/formatter.rb @@ -34,8 +34,8 @@ def method_missing(method_name, *arguments, &block) end # for tagged logging - def respond_to?(method_name, include_private = false) - @formatter.send(:respond_to?, method_name, include_private) || super + def respond_to_missing?(method_name, include_private = false) + @formatter.respond_to?(method_name, include_private) || super end end end