~/talk

A Look at Hooks

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby]
slides:none on file

Lists the actual Ruby hooks covered, shows method_missing with the proper signature and why also to implement respond_to_missing, demos new implemented roughly in Ruby vs C, warns against const_missing and recommends require/autoload instead, demonstrates module lifecycle hooks (included, prepended, inherited) and singleton-method hooks, explains implicit conversions and a working coerce example for numeric-like types, and proves at_exit blocks run in reverse registration order and how to check for exceptions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00What is a Hook
  3. 1:49Initialize
  4. 3:34MethodMissing
  5. 4:51Respond toMissing
  6. 6:02ConstantMissing
  7. 6:57Module Included
  8. 8:11Module Extended
  9. 8:30Prepend
  10. 9:09Inheritance
  11. 9:35Method Life Cycles
  12. 10:00Removing Methods
  13. 10:41Adding Methods
  14. 11:12Implicit Methods
  15. 12:41Explicit Methods
  16. 13:57Double Dispatch
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.