Class: Mocha::Logger

Inherits:
Object show all
Defined in:
lib/mocha/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ Logger

Returns a new instance of Logger


5
6
7
# File 'lib/mocha/logger.rb', line 5

def initialize(io)
  @io = io
end

Instance Method Details

#warn(message) ⇒ Object


9
10
11
# File 'lib/mocha/logger.rb', line 9

def warn(message)
  @io.puts "WARNING: #{message}"
end