Class: Twing::Modules::CustomLogger
- Inherits:
-
Object
- Object
- Twing::Modules::CustomLogger
- Defined in:
- lib/twing/utility/logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(logger, prefix) ⇒ CustomLogger
constructor
A new instance of CustomLogger.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(logger, prefix) ⇒ CustomLogger
Returns a new instance of CustomLogger.
6 7 8 9 |
# File 'lib/twing/utility/logger.rb', line 6 def initialize(logger, prefix) @logger = logger @prefix = prefix end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
17 18 19 |
# File 'lib/twing/utility/logger.rb', line 17 def method_missing(method, *args) @logger.send(method, *args) end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/twing/utility/logger.rb', line 4 def logger @logger end |