Ruby - Modules and Mixins
What will this Ruby code print?
module A
def hello
"Hello from A"
end
end
class B
include A
def hello
"Hello from B"
end
end
puts B.new.hello