Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Introducing the Application role, as per 28:137
  • Loading branch information
lizmat committed May 13, 2014
1 parent 9fa1db5 commit ba37b3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/core/Application.pm
@@ -0,0 +1,13 @@
role Application {
has Str $.name;
has Str $.auth;
has Version $.version;

submethod BUILD (
:$!name = "unknown",
:$!auth = "unknown",
:$!version = Version.new("unknown"),
) {}
method gist { $!name ~ (" ($!version)" if $!version ne "vunknown") }
method Str { $!name }
}

0 comments on commit ba37b3a

Please sign in to comment.