Loading…
0+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes .
Ruby modules and mixins replace multiple inheritance and are one of the most-probed intermediate interview topics. This module covers include vs extend vs prepend and how each one alters the MRO ancestors chain, the included/extended/prepended hooks, how Enumerable gives you map/select/sort/min/max/group_by for free if you implement each, how Comparable gives you all comparison operators for free if you implement <=>, module_function for utility modules, ActiveSupport::Concern and why it cleans up the included do block pattern, and the module as namespace pattern. Every answer traces the method lookup path so the interviewer can see you understand the ancestor chain, not just the syntax.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–0 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–0 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q0.