Class: ClamAV::Commands::PingCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/clamav/commands/ping_command.rb

Instance Method Summary collapse

Instance Method Details

#call(conn) ⇒ Object



21
22
23
# File 'lib/clamav/commands/ping_command.rb', line 21

def call(conn)
  !!(/\d+: PONG/.match(conn.send_request("PING")))
end