Ruby - Modules and Mixins
Given this module:
How can you use
module Formatter
def self.format_name(first, last)
"#{last}, #{first}".upcase
end
endHow can you use
format_name inside a class Person without repeating the module name every time?