Yep! This code is essentially taken from the provides method of the previous ohai dsl. It sets it up so that if you have plugins like "ruby" which provide "languages/ruby" then metadata looks like:

@metadata => { "languages" => {"ruby" => ...} }