Talking head
Ruby Conference 2016

This presentation, by Craig Buchek, is licensed under a Creative Commons Attribution ShareAlike 3.0
80x15

Ruby has several methods that are invoked implicitly under certain circumstances. These methods are called "hooks", and they provide points to extend behavior. While hooks might seem like "spooky action at a distance", they can be really powerful. In fact, hooks are one of the primary ways that Ruby provides for meta-programming. Unfortunately, Ruby's hooks are not all documented very well. We'll take a look at what hooks are available and how to use them. We'll also talk about when to avoid using hooks and provide some tips on how to troubleshoot when hooks are involved.

Rated: Everyone
Viewed 215 times
Tags: There are no tags for this video.