Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
boolify attributes in Parameter
  • Loading branch information
moritz committed Oct 9, 2009
1 parent 1f2e5f4 commit 174e0d6
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 174e0d6

Please sign in to comment.