Ruby - Advanced Metaprogramming
Find the error in this Ruby code using the included hook:
module Logger
def included(base)
base.extend(ClassMethods)
end
module ClassMethods
def log(msg)
puts "Log: #{msg}"
end
end
end
class App
include Logger
end
App.log("Start")