inspect

sockopt.inspect => string
Instance Public methods

Returns a string which shows sockopt in human-readable form.

p Socket::Option.new(:INET, :SOCKET, :KEEPALIVE, [1].pack("i")).inspect
#=> "#<Socket::Option: INET SOCKET KEEPALIVE 1>"
doc_ruby_on_rails
2015-05-15 04:07:11
Comments
Leave a Comment

Please login to continue.