Forum: Ruby Nested iterators and their scope

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Df50ba29334b78eaf6fafd8c0237d898?d=identicon&s=25 Eric L. (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.
This topic is locked and can not be replied to.