module CodeRay::PluginHost

def const_missing const

underscore form (eg. LinesOfCode becomes lines_of_code).
Tries to +load+ the missing plugin by translating +const+ to the
def const_missing const
  id = const.to_s.
    gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
    gsub(/([a-z\d])([A-Z])/,'\1_\2').
    downcase
  load id
end