Class: Mocha::Logger
Instance Method Summary collapse
-
#initialize(io) ⇒ Logger
constructor
A new instance of Logger.
- #warn(message) ⇒ Object
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() @io.puts "WARNING: #{}" end |