Ruby: metaprogramming with "method_missing"

Example:

def method_missing(method_name)
  "Method #{method_name} was called!"
end
"method_missing" is a way to handle calls to undefined methods.

Solution:

puts unknown_method  // Outputs: Method unknown_method was called!

Beginner's Guide to Ruby