In order to truly understand Ruby's object model, we must learn to see the singleton classes.
How to check class of uncooperative, or outright dishonest Ruby objects.
What's the best way to ask a Ruby object what class it belongs to?
Learning the rules of Ruby's inheritance callbacks, in order to do defensive metaprogramming.
Introspecting Ruby to find all all implementations of a method.
Noah Gibbs joins us this week, to show us how we can find out all about ruby methods just by asking them.
Today we tackle one of Ruby's most controversial new features. Building on the example from episode #249, we'll look at how to extend a core class with custom methods, without …
In which I rant a bit about the dangers of "monkey-patching".
Since Ruby 2.1, def returns a symbol. In this episode we'll take a look at why this matters, and how it might change the way we define methods.
When is it appropriate to metaprogram? Today's episode looks at one situation in which it may be a good choice.