Add snapshot method to ruby coverage lib