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.

Like what you see? This is just a taste of RubyTapas! Sign up today to get two videos a week, along with full source code and transcripts. Or click here to learn more.
This entry was posted in Ruby, RubyTapas Samples, Screencasts, Videos. Bookmark the permalink.
  • Pingback: The Past 2 Weeks in Ruby: 1.9.3-p286, JRuby 1.7RC2, Sidekiq Pro and Much More

  • googya

    what is very editor you used in the video? It seems very nice

    • Avdi Grimm


    • Avdi Grimm


  • Keith Bennett

    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?

    • Avdi Grimm

      Yeah, that’s a common case.