Class: FileUtils::LoggerAdapter
- Inherits:
-
Object
- Object
- FileUtils::LoggerAdapter
- Defined in:
- lib/scm_workspace/core_ext/fileutils.rb
Instance Method Summary collapse
-
#initialize(logger, level) ⇒ LoggerAdapter
constructor
A new instance of LoggerAdapter.
- #puts(msg) ⇒ Object
Constructor Details
#initialize(logger, level) ⇒ LoggerAdapter
Returns a new instance of LoggerAdapter.
51 52 53 |
# File 'lib/scm_workspace/core_ext/fileutils.rb', line 51 def initialize(logger, level) @logger, @level = logger, level end |
Instance Method Details
#puts(msg) ⇒ Object
54 55 56 |
# File 'lib/scm_workspace/core_ext/fileutils.rb', line 54 def puts(msg) @logger.send(@level, msg) end |