Class: Amp::Support::IOForwarder
Instance Method Summary collapse
- #debug(input) ⇒ Object
- #error(input) ⇒ Object
- #fatal(input) ⇒ Object
- #info(input) ⇒ Object
-
#initialize(output) ⇒ IOForwarder
constructor
A new instance of IOForwarder.
- #warn(input) ⇒ Object
Constructor Details
#initialize(output) ⇒ IOForwarder
Returns a new instance of IOForwarder.
27 28 29 |
# File 'lib/amp/support/logger.rb', line 27 def initialize(output) @output = output end |
Instance Method Details
#debug(input) ⇒ Object
35 |
# File 'lib/amp/support/logger.rb', line 35 def debug(input); @output.puts(input); end |
#error(input) ⇒ Object
34 |
# File 'lib/amp/support/logger.rb', line 34 def error(input); @output.puts(input); end |
#fatal(input) ⇒ Object
33 |
# File 'lib/amp/support/logger.rb', line 33 def fatal(input); @output.puts(input); end |
#info(input) ⇒ Object
32 |
# File 'lib/amp/support/logger.rb', line 32 def info(input); @output.puts(input); end |
#warn(input) ⇒ Object
31 |
# File 'lib/amp/support/logger.rb', line 31 def warn(input); @output.puts(input); end |