Ruby scoping still defies me.