I found prepend method while writing EventService, which is not mentioned as often as include or extend, so I sorted out the differences between these three.
references:
Ruby modules: Include vs Prepend vs Extend
Include, Extend, And Prepend In Ruby
Eigenclasses
The Ruby Object Model by Dave Thomas
Here we have a module Instinctive which has a instance method called eat, and a class named Human for the later examples.
Parker changed 3 years agoView mode Like 1 Bookmark