We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Messenger: The (Complete) Story of Method Lookup

Formal Metadata

Title
Messenger: The (Complete) Story of Method Lookup
Title of Series
Number of Parts
66
Author
Contributors
License
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date2015
LanguageEnglish
Producer
Production PlaceSan Antonio

Content Metadata

Subject Area
Genre
Abstract
You call a method on an object, and it invokes the instance method defined on the class. Simple. Except when the method isn't on the class itself, because it's inherited from a superclass. Or a singleton class, mixin, or refinement. Actually, this is kind of complicated! In this talk, we'll take an inside look at Ruby method lookup. We'll start with the basics, like inherited methods, and work our way up to the cutting-edge stuff, like refinements and prepending mixins. You'll leave with a clear understanding of how it all works, and maybe with some better ideas for structuring your code!