Forum: Ruby Nested iterators and their scope

330706f815a29c699bbad1d046352fd8?d=identicon&s=25 Eric Lecarde (holmcross)
on 2014-06-17 04:36
Attachment: code_snippet.jpg (40 KB)
I get a no method error on new_coin_a in the .each iterator. I don't
understand, doesn't a block have the scope of whatever it's calling
method has (machine this case, which has the scope of coins)? Thanks.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.