Ruby - Modules and Mixins
What is the output of this Ruby code?
module M
def greet
"Hello from M, " + super
end
end
class C
prepend M
def greet
"Hello from C"
end
end
puts C.new.greet