Ruby - Inheritance
What will be the output of this Ruby code?
module Mixin
def greet
'Hello from Mixin'
end
end
class Parent
def greet
'Hello from Parent'
end
end
class Child < Parent
include Mixin
end
puts Child.new.greet