Method: ZMQ::Socket#type_str
- Defined in:
- lib/zmq/socket.rb
#type_str ⇒ Object
Generates a string representation of this socket type
socket = ctx.socket(:PUB) socket.type_str => “PUB”
62 63 64 |
# File 'lib/zmq/socket.rb', line 62 def type_str self.class.const_get(:TYPE_STR) end |