Ruby accessing outer variables in nested function Ruby accessing outer variables in nested function ruby ruby