Ruby - Modules and Mixins
What will this code print?
module M
def greet
"M says hello"
end
end
class C
prepend M
def greet
"C says hello"
end
end
puts C.new.greet