module EventMachine::IMAP::Connection::Debug

Intercepts send_data and receive_data and logs them to STDOUT, this should be the last module included.

Public Instance Methods

receive_data(data) click to toggle source
Calls superclass method
# File lib/em-imap/connection.rb, line 188
def receive_data(data)
  puts "S: #{data.inspect}"
  super
end
send_data(data) click to toggle source
Calls superclass method
# File lib/em-imap/connection.rb, line 183
def send_data(data)
  puts "C: #{data.inspect}"
  super
end