← Graph

Ruby Module Customization Mechanics

concept 4 connections

Ruby's out-of-the-box toolkit for customizing objects — inheritance, mix-ins via include/extend, super, and prepend — combined with overriding specific methods. Nick Sutterer argues these are low-level mechanics: overriding requires knowing which method is called where, multiple modules silently override the same method, and you cannot skip a particular module in the super chain or delete an inherited method. Trailblazer's step DSL was designed as an alternative for workflow customization.

category
pattern
about
Ruby Module Customization Mechanics concept
Talk critiques Ruby's include/extend/super/prepend/refinements as insufficient for workflow customization.
about
Ruby Module Customization Mechanics concept
Recommends prepending modules rather than using inheritance to share error-handling concerns across jobs.
about
Ruby Module Customization Mechanics concept
Relies on Ruby's prepend vs include semantics for module composition.
about
Ruby Module Customization Mechanics concept
Uses Module#prepend to safely overwrite underwriting entry points inside Chat::Quotes.

Provenance

Read by
18 extractions