Module: IORequest::Utility::WithProgName
- Included in:
- Client
- Defined in:
- lib/io_request/utility/with_prog_name.rb
Overview
Adds special method to identify object in log files.
Instance Method Summary collapse
-
#prog_name ⇒ Object
Identifies object and thread it runs in.
Instance Method Details
#prog_name ⇒ Object
Identifies object and thread it runs in.
9 10 11 |
# File 'lib/io_request/utility/with_prog_name.rb', line 9 def prog_name "#{self.class.name}##{object_id} in Thread##{Thread.current.object_id}" end |