class DohLog::StreamAcceptor

Attributes

ios[R]

Public Class Methods

new(ios) click to toggle source
# File lib/dohlog/stream_acceptor.rb, line 6
def initialize(ios)
  @ios = ios
end

Public Instance Methods

add(event) click to toggle source
# File lib/dohlog/stream_acceptor.rb, line 10
def add(event)
  @ios.puts("#{event.summary}\n#{event.exception_text}")
end
shutdown() click to toggle source
# File lib/dohlog/stream_acceptor.rb, line 14
def shutdown
  @ios = nil
end