Respond to an unknown method call: Difference between revisions
Content deleted Content added
Line 93:
=={{header|Fancy}}==
<lang
def class CatchThemAll {
def foo {
Line 104:
def unknown_message: msg with_params: params {
"message: " ++ msg print
"arguments: " ++ (params join: ", ") println
}
};
a = CatchThemAll new
a foo
a bar
a we_can_do_it
a they_can_too: "eat" and: "walk"
</lang>
|