Class: Del::SocketConnection
- Inherits:
-
Object
- Object
- Del::SocketConnection
- Defined in:
- lib/del/socket_connection.rb
Instance Method Summary collapse
-
#initialize(path:) ⇒ SocketConnection
constructor
A new instance of SocketConnection.
- #on_receive ⇒ Object
Constructor Details
#initialize(path:) ⇒ SocketConnection
Returns a new instance of SocketConnection.
5 6 7 8 |
# File 'lib/del/socket_connection.rb', line 5 def initialize(path:) File.unlink(path) if File.exist?(path) @server = UNIXServer.new(path) end |