Class: LIS::Transfer::Logging
- Inherits:
-
PacketIO::Base
- Object
- PacketIO::Base
- LIS::Transfer::Logging
- Defined in:
- lib/lis/transfer/logging.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Logging
constructor
A new instance of Logging.
- #receive(type, message = nil) ⇒ Object
- #write(type, message = nil) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Logging
Returns a new instance of 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, =nil) output("<", type, ) super end |
#write(type, message = nil) ⇒ Object
14 15 16 17 |
# File 'lib/lis/transfer/logging.rb', line 14 def write(type, =nil) output(">", type, ) super end |