Mastering an understanding of the ruby object model can help navigate many potential confusions about the language, and can make you a more confident and effective developer. Take a look at the quiz below to see how well you know the ruby object model.

Introduction

Our previous post looked at defining private methods inside ruby class methods. While writing that post I came to the realisation that my understanding of the ruby object model was somewhat deficient.

I decided to brush up on my knowledge of the subject (see References), and I thought this might be another good opportunity for a short quiz, allowing readers to test themselves on this important topic.

Have a go at the short quiz below to see how well you know the ruby object model.

References

  1. Article looking at confusion arising when dynamically defining methods inside methods
  2. Concise article on the ancestor chain
  3. YouTube video looking at the underlying C representation of Ruby objects
  4. Makandra card. covering the same ideas as previous YouTube video
  5. More in-depth article on the Ruby object mobel

Comments

There are no existing comments

Got your own view or feedback? Share it with us below …

×

Subscribe

Join our mailing list to hear when new content is published to the VectorLogic blog.
We promise not to spam you, and you can unsubscribe at any time.