Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Socket::UDPSource#reply
(::String msg) -> void
reply(msg)
ext/socket/lib/socket.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/ext/socket/lib/socket.rb, line 1521
def reply(msg)
@reply_proc.call msg
end
Sends the String msg to the source