Ruby - Advanced Metaprogramming
Why is the included hook defined as a class method (self.included) rather than an instance method in Ruby modules?
Why is the included hook defined as a class method (self.included) rather than an instance method in Ruby modules?
included hook runs at the moment the module is included into a class or module, not when instances are created.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions