class Hieracles::Outputs::Console
format accepting colors for display in the terminal
Constants
- COLORS
Public Class Methods
new()
click to toggle source
# File lib/hieracles/outputs/console.rb, line 23 def initialize() @colors = {} end
Public Instance Methods
hash_list(headers, hash)
click to toggle source
# File lib/hieracles/outputs/console.rb, line 27 def hash_list(headers, hash) back = "\n" if headers.count > 0 notifications.each do |v| back << format("#{COLORS[9]}\n", "*** #{v.source}: #{v.message} ***") end back << "\n" end end