Sorry, but that is IMO a REALLY dirty style. Why don't you simply create a hash with cookbook name as a key? That would look much cleaner.