RubyTapas Episode 7: Constructors

6 comments

  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 *