Skip to content

Instantly share code, notes, and snippets.

module MyModule
# Defines method_missing
module ClassMethods
def method_missing(method)
puts "Method: \"#{method}\" does not exist."
end
end
# Will add method_missing to MyModule itself