Skip to content

Yielding  #70

Description

@ThomasBush

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions