Class: Docwatch::Logger

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

Instance Method Summary collapse

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