Class: Scarpe::Components::PrintLogImpl::PrintLogger
- Inherits:
-
Object
- Object
- Scarpe::Components::PrintLogImpl::PrintLogger
- Defined in:
- lib/scarpe/components/print_logger.rb
Instance Method Summary collapse
- #debug(msg) ⇒ Object
- #error(msg) ⇒ Object
- #info(msg) ⇒ Object
-
#initialize(component_name) ⇒ PrintLogger
constructor
A new instance of PrintLogger.
- #warn(msg) ⇒ Object
Constructor Details
#initialize(component_name) ⇒ PrintLogger
Returns a new instance of PrintLogger.
12 13 14 |
# File 'lib/scarpe/components/print_logger.rb', line 12 def initialize(component_name) @comp_name = component_name end |
Instance Method Details
#debug(msg) ⇒ Object
24 25 26 |
# File 'lib/scarpe/components/print_logger.rb', line 24 def debug(msg) puts "#{@comp_name} debug: #{msg}" end |
#error(msg) ⇒ Object
16 17 18 |
# File 'lib/scarpe/components/print_logger.rb', line 16 def error(msg) puts "#{@comp_name} error: #{msg}" end |
#info(msg) ⇒ Object
28 29 30 |
# File 'lib/scarpe/components/print_logger.rb', line 28 def info(msg) puts "#{@comp_name} info: #{msg}" end |
#warn(msg) ⇒ Object
20 21 22 |
# File 'lib/scarpe/components/print_logger.rb', line 20 def warn(msg) puts "#{@comp_name} warn: #{msg}" end |