How would one use the module below to catch the missing class method in
the ‘MyClass’ class? Thanks in advance!
module MyMod
def method_missing(meth, *args)
puts “I caught the missing class method”
end
end
class MyClass
include MyMod
def initialize
MyClass.foo
end
end