158: def banner(msg, size = :normal, colour = :black)
159: return unless msg
160: banners = {
161: :huge => Rudy::Utils.without_indent(%Q(
162: =======================================================
163: =======================================================
164: !!!!!!!!! %s !!!!!!!!!
165: =======================================================
166: =======================================================)),
167: :normal => %Q(============ %s ============)
168: }
169: size = :normal unless banners.has_key?(size)
170:
171: size, colour = size.to_sym, colour.to_sym
172: sprintf(banners[size], msg).bright.att(:reverse)
173: end