Class: LIS::Transfer::Logging

Inherits:
PacketIO::Base
  • Object
show all
Defined in:
lib/lis/transfer/logging.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Logging


4
5
6
7
# File 'lib/lis/transfer/logging.rb', line 4

def initialize(*args)
  @verbose = $VERBOSE
  super
end

Instance Method Details

#receive(type, message = nil) ⇒ Object


9
10
11
12
# File 'lib/lis/transfer/logging.rb', line 9

def receive(type, message=nil)
  output("<", type, message)
  super
end

#write(type, message = nil) ⇒ Object


14
15
16
17
# File 'lib/lis/transfer/logging.rb', line 14

def write(type, message=nil)
  output(">", type, message)
  super
end