Wednesday, September 9, 2015

Watch: Singleton Methods in Ruby

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 we are going to discuss callbacks to observe method changes as well as differences between removing and undefining methods. The next mystery of Ruby is going to be revealed!

This is the third video of the Ruby Metaprogramming Revealed series. Learn more about Ruby metaprogramming by viewing the rest.

Loading the player...

Continue reading %Watch: Singleton Methods in Ruby%


by Ilya Bodrov-Krukowski via SitePoint

No comments:

Post a Comment