Mailing the story:

The Power of 'yield' in Ruby

  • LXer; By Sarah Vessels (Posted by on CST)
  • Story Type: Tutorial
...and super. These two keywords allow you to pass control back and forth between parent and child methods, to weave power between a more general method (in the parent class) and a more specific method (in the child class) with ease and logic. Using yield and super effectively can help you maintain the DRY (Don't repeat yourself) principle, keeping your code easier to maintain.
What is your name?

What is your E-Mail address?

What is the email address of the recipient?

Add a special note from yourself?