Thursday, September 17, 2015

Ruby 2.2.2 Include and Extend Basics

Pre-requisites

 - Instance method and class method
 - included() hook method

Concepts Covered

1. Using Mixin to invoke an instance method in a module using include.
2. Using extend to to invoke a class method in a module
3. Using Plugin idiom to invoke instance and class methods in a module from a class.

Click the image below to watch the video.