Class: Amp::Support::IOForwarder

Inherits:
Object
  • Object
show all
Defined in:
lib/amp/support/logger.rb

Instance Method Summary collapse

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