Sha256: 8d4b6482a1d679ee5712c6c55d11a2815f67fa79b65ea8cf6363d4ce739f1b8c
Contents?: true
Size: 727 Bytes
Versions: 5
Compression:
Stored size: 727 Bytes
Contents
module Ninjs class Notification @@growl_support = false @@indicators = { :none => "", :log => "\e[32m>>>\e[0m ", :event => "\e[33m<<<\e[0m ", :added => "\e[32m+++\e[0m ", :error => "\e[0;31m!!!\e[0m " } def self.notify(message, style) puts @@indicators[style] + message end def self.notice(message) self.notify(message, :none) end def self.log(message) self.notify(message, :log) end def self.event(message) self.notify(message, :event) end def self.added(message) self.notify(message, :added) end def self.error(message) self.notify(message, :error) end end end
Version data entries
5 entries across 5 versions & 1 rubygems