Created
June 27, 2016 08:20
-
-
Save tadzik/1f0d9ac127f96ad5ed06fa8fa0cd7d56 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 User { | |
has $.username is required; | |
method new(*%args) { | |
my $obj = self.bless(*, |%args); | |
return $obj; | |
} | |
} | |
User.new(username => 'foo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment