class Humr::Config

Constants

COLORS
DEFAULT

Public Class Methods

new() click to toggle source
# File lib/humr/config.rb, line 24
def initialize
  @config = DEFAULT.dup
end

Public Instance Methods

color(handler) click to toggle source
# File lib/humr/config.rb, line 32
def color(handler)
  name = if handler.kind_of?(Symbol)
    handler
  else
    handler.name
  end

  @config[:handler][name][:color]
end
handlers() click to toggle source
# File lib/humr/config.rb, line 28
def handlers
  @config[:handlers].map(&:to_sym)
end