Lightweight Ruby hash translator