~/talk

The case of the missing method — a Ruby mystery story

Talkat EuRuKo 2018 · 2018-08-24..08-25· [ruby]
slides:none on file

A Ruby method lookup mystery gets solved by reproducing the bug in Pry/IRB, inspecting ObjectSpace counts, and writing a small where helper that walks ancestors; the missing method does not live on Class but on the object's singleton class, revealed by filtering methods and checking singleton_class ancestors. The talk shows a working DSL built with instance_eval (City.construct) to create per-city behavior, explains why class methods are really singleton-instance methods, and demos how this causes the undefined method error.

AI-written summary · about

  1. 0:00Intro
  2. 1:20Mike and Jenny
  3. 6:27Ever heard of Google
  4. 10:00Smalltalk
  5. 13:36The phone call
  6. 14:24What are Singleton classes
  7. 15:24Budgeting Inc
  8. 16:15Creating a DSL
  9. 21:35Singleton classes
  10. 24:45Mike
  11. 27:06Ellen
  12. 28:13Ruby Core Team
~/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.