Module: Logger
- Defined in:
- lib/notroff/logger.rb
Class Method Summary collapse
Class Method Details
.log(*args) ⇒ Object
9 10 11 12 |
# File 'lib/notroff/logger.rb', line 9 def self.log(*args) return unless @verbose puts args.join(' ') end |
.verbose=(value) ⇒ Object
5 6 7 |
# File 'lib/notroff/logger.rb', line 5 def self.verbose=(value) @verbose = value end |
.warn(*args) ⇒ Object
14 15 16 17 |
# File 'lib/notroff/logger.rb', line 14 def self.warn(*args) STDERR.puts "WARNING: #{args.join(' ')} ******" log(args) end |