Sha256: 2c4d2fe33d6b65658a10043b91c180fc99cd60693ec521397b9126f09831d33b
Contents?: true
Size: 369 Bytes
Versions: 39
Compression:
Stored size: 369 Bytes
Contents
require 'socket' module LogStashLogger module Device class Unix < Connectable def initialize(opts={}) super @path = opts[:path] || fail(ArgumentError, "Path is required") end def connect @io = ::UNIXSocket.new(@path).tap do |socket| socket.sync = sync unless sync.nil? end end end end end
Version data entries
39 entries across 39 versions & 3 rubygems