lib/ezmq/socket.rb in ezmq-0.3.6 vs lib/ezmq/socket.rb in ezmq-0.3.7
- old
+ new
@@ -17,10 +17,10 @@
# @option options [lambda] encode how to encode messages.
# @option options [lambda] decode how to decode messages.
# @option options [String] protocol ('tcp') protocol for transport.
# @option options [String] address ('127.0.0.1') address for endpoint.
# @option options [Fixnum] port (5555) port for endpoint.
- # @note port is ignored unless protocol is either 'tcp' or 'udp'.
+ # @note port is ignored unless protocol is one of 'tcp', 'pgm' or 'epgm'.
#
# @return [Socket] a new instance of Socket.
#
def initialize(mode, type, **options)
fail ArgumentError unless %i(bind connect).include? mode