Sha256: b7aa36d0f7def4bc5300f4d3a0e9a0300705637d56fbdebc8a6c24b1efd4cb6c
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
require 'awesome_print' module Hi class Logger def log(message) print message unless testing end private def print(message) if message.is_a? String puts message else ap message end end def testing ENV['RACK_ENV'] == 'test' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hi-1.2.1 | lib/hi/logger.rb |