Created
December 1, 2016 17:08
-
-
Save zoffixznet/d41b3aa444144c2ab3322ad2b85db481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Thingie { | |
multi method stuff ($ where /meows/) { | |
say "Meow meow!"; | |
} | |
} | |
class SubThingie is Thingie { | |
multi method stuff ($ where /foos/) { | |
say "Just foos..."; | |
} | |
} | |
SubThingie.new.stuff: 'meows and foos'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment