Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 9, 2009
2 parents 489f5d1 + 174e0d6 commit 03f82dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/setting/Parameter.pm
@@ -1,4 +1,11 @@
class Parameter {
multi method new(*%args) {
for <rw ref copy named slurpy optional default invocant> -> $n {
# %args{$n}.=true doesn't seem to work here.
%args{$n} = ?%args{$n} if %args.exists($n);
}
self.bless(*, |%args);
}
has $.name;
has $.type;
has $.constraints;
Expand Down

0 comments on commit 03f82dd

Please sign in to comment.