As a programming exercise, I\'ve written a Ruby snippet that creates a class, instantiates two objects from that class, monkeypatches one object, and relies on method_missin
def method_missing(m) self.class.class_exec do define_method(:screech) {puts "This is the new screech."} end end
screech method will be available for all Monkey objects.