vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/test/tc_resolver.rb
# Returns a new resolver whose send_plain_message is overridden to return
# :response_from_send_plain_message instead of a real Dnsruby::Message,
# for easy comparison in the tests.
Returns a new resolver whose send_plain_message is overridden to return
:response_from_send_plain_message instead of a real Dnsruby::Message,
for easy comparison in the tests.
Returns a new resolver whose send_plain_message is overridden to return : response_from_send_plain_message instead of a real Dnsruby :: Message for easy comparison in the tests .
def resolver_returning_response
    resolver = Dnsruby::Resolver.new
    def resolver.send_plain_message(_message)
      [:response_from_send_plain_message, nil]
    end
    resolver
  end
def resolver_returning_response resolver = Dnsruby :: Resolver . new def resolver . send_plain_message ( _message ) [ :response_from_send_plain_message , nil ] end resolver end
Returns a new resolver whose send_plain_message is overridden to return
:response_from_send_plain_message instead of a real Dnsruby::Message,
for easy comparison in the tests.
Returns a new resolver whose send_plain_message is overridden to return : response_from_send_plain_message instead of a real Dnsruby :: Message for easy comparison in the tests .