A Ruby Version of kmatch (https://github.com/ambitioninc/kmatch)