Class: Ramesh::Logger
- Inherits:
-
Object
- Object
- Ramesh::Logger
- Defined in:
- lib/ramesh/logger.rb
Instance Method Summary collapse
- #info(msg) ⇒ Object
-
#initialize(output) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(output) ⇒ Logger
Returns a new instance of Logger.
3 4 5 |
# File 'lib/ramesh/logger.rb', line 3 def initialize(output) @output = output end |
Instance Method Details
#info(msg) ⇒ Object
7 8 9 |
# File 'lib/ramesh/logger.rb', line 7 def info(msg) @output.puts msg end |