Jump to content

Respond to an unknown method call: Difference between revisions

Line 93:
 
=={{header|Fancy}}==
<lang rubyfancy>
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>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.