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