Understanding Ruby Modules: Prepend vs. Include
Introduction:
Module is a collection of constants, methods, classes, and variables in a container.
Modules implement the mixin facility
module Animal
def sound
puts 'animal sound'
end
end
class Dog
include Animal
...
ahmedabdelaal.hashnode.dev2 min read