module Process::Roulette
Constants
- VERSION
Public Class Methods
EnhanceSocket(socket)
click to toggle source
A factory method for applying the EnhanceSocket
module to a socket. It adds the module, and automatically calls ping!, to ensure that the socket begins in an “alive” state.
# File lib/process/roulette/enhance_socket.rb, line 7 def self.EnhanceSocket(socket) # rubocop:disable Style/MethodName socket.tap do |s| s.extend(EnhanceSocket) s.ping! end end