RubyTapas Episode 7: Constructors

In today’s free Monday episode, a look into how Ruby constructs new objects, and how we can customize constructors for special scenarios.


[boilerplate bypath=”rubytapas-sample”]


  1. Avdi, you showed the passing of &block from the class’ new function to the instance’s initialize function. How is this typically used in initialize? yield(self), to perform further custom initialization of the object?

Leave a Reply

Your email address will not be published. Required fields are marked *