Skip to content

POODR Book Club Chapter 7

Photo of Jim Remsik
Hosted By
Jim R.
POODR Book Club Chapter 7

Details

In this chapter, Metz continues the discussion of sharing behavior using Ruby modules. Similar to classical inheritance, modules inject their methods into an object’s lookup path to extend behavior. Modules also serve as a tidy abstraction of roles and duck types.

Below are a few questions to get our conversation started around Chapter 7. Feel free to answer any one of these and reply with a helpful comment on someone else’s post as well.

  1. How would you describe the relationship between roles and modules based on the chapter's explanation?
  2. In what situations would you choose to use a module instead of inheritance for sharing behavior?
  3. Any other thoughts or questions you have on this chapter?
Photo of Mad-Railers group
Mad-Railers
See more events
Online event
This event has passed