Class: ClamAV::Wrappers::NewLineWrapper

Inherits:
ClamAV::Wrapper show all
Defined in:
lib/clamav/wrappers/new_line_wrapper.rb

Instance Method Summary collapse

Methods inherited from ClamAV::Wrapper

#unwrap_response

Instance Method Details

#read_response(socket) ⇒ Object



26
27
28
# File 'lib/clamav/wrappers/new_line_wrapper.rb', line 26

def read_response(socket)
  read_until(socket, "\n")
end

#wrap_request(request) ⇒ Object



22
23
24
# File 'lib/clamav/wrappers/new_line_wrapper.rb', line 22

def wrap_request(request)
  "n#{request}\n"
end