[deleted]
Re:Why teach with Ruby?
by jeremymcanally on Thursday October 14, 2010 @12:14PM
(#1791436)
That's any language that has scoping. I think what you're searching for is something like using lambda {} that captures the outer scope.
I used lambda actually to introduce some middle schoolers to capturing behavior in Ruby. It worked well.