Learning About the Uses of Singleton Methods in Ruby

Part of Screencast Series: Ruby Metaprogramming Revealed

Published September 2015

Callbacks to

Did you know that in Ruby you can define “personal method” for objects? That is, a method that only one object will respond to. Such methods are called singleton methods and it is worth knowing how to work with them. In this video I’ll also discuss callbacks to observe method changes as well as differences between removed and undefined methods.


Have your say! or become a member now to take part in the discussion

Meet your instructor
Ilya Bodrov-Krukowski

Ilya is a lecturer at MATI-RSTU, senior engineer at Campaigner LLC and seasoned author at SitePoint. When Ilya is not working away on new projects or contributing to open source projects, he's expanding and refining his skills in HTML, CSS, jQuery, Angular, Backbone and Rails. You can read all about his work and development discoveries on his blog Radiant Wind.