I would be interested to know if someone has a more core-ruby solution?