Created
December 1, 2016 17:18
-
-
Save zoffixznet/ad2bfbddf71840623d07ebaddc4055da 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 (Str $ 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