Method: Logue::ColorLog#method_missing

Defined in:
lib/logue/colorlog.rb

#method_missing(meth, *args, &blk) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/logue/colorlog.rb', line 28

def method_missing meth, *args, &blk
  if code = valid_colors[meth]
    add_color_method meth.to_s, code + 30
    send meth, *args, &blk
  else
    super
  end
end