-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hey all,
I am working through the Ruby Bits tutorials at CodeSchool. I am completing the section about yields. In the challenges we yield, yield objects, and yield blocks (I think?) to other blocks and while I can complete the code challenges I don't quite understand what (or why) I am yielding. I was hoping someone could dumb down this concept of a Yield a little so I could have a more complete understanding.
I think I get the idea when looking at the rails application layout. We do some header stuff, yield to the specific template, than do some footer stuff. I think where I get confused is yielding blocks or objects to other blocks or objects.
I would really appreciate if someone could shed some light on this concept for me.
Thanks!
Thomas Bush