Forwardable Module
Forwardable module is able to give new behaviour to an object by delegating the method to it, using def_delegator or def_delegators.
Let’s say we have this
class HousingUnit
attr_reader :example
def initialize
@example = [:apartment, :flat, ...
valendea.hashnode.dev3 min read