Ruby - Modules and Mixins
Identify the error in this Ruby code:
module M
def hello
"Hello"
end
end
class A
include M
extend M
end
puts A.hello
puts A.new.hello