Episode #090: class<<self

Have you ever seen some Ruby code that looks like this?
class <<self
# ...
This is one of Ruby's stranger syntactical idioms, and you might have wondered what it accomplishes. Or perhaps you've pondered why some codebases seem to use it a lot, while others don't use it at all. In this episode from the freezer, you'll learn more about the meaning of this syntax, as well as about why it's not always the best choice for defining singleton methods.

This page is just for members. Sign in or subscribe to gain access!