| Class | Webby::Journal |
| In: |
lib/webby/journal.rb
|
| Parent: | Object |
The Journal class is used to output simple messages regarding the creation and updating of files when webby applications are run. The output messages will be color coded if the terminal supports the ANSI codes.
| colorize | [RW] | |
| logger | [R] |
Output a message of the given type using the option color code. The available codes are as follows:
The color is specified as a string or a symbol.
# File lib/webby/journal.rb, line 34 def typed_message( type, msg, color = nil ) type = type.to_s.rjust(13) type = self.send(color, type) unless color.nil? logger.info "#{type} #{msg.to_s}" end