lib/ezmq/socket.rb in ezmq-0.4.2 vs lib/ezmq/socket.rb in ezmq-0.4.3
- old
+ new
@@ -41,10 +41,10 @@
# @param [Hash] options optional parameters.
# @option options [lambda] encode how to encode the message.
#
# @return [Fixnum] the size of the message.
#
- def send(message = '', **options)
+ def send(message, **options)
encoded = (options[:encode] || @encode).call message
@socket.send_string encoded
end
# Receive a message from the socket.