- or download this
class Hamper {
has $.name = 'Christmas Basket';
...
say "Name: " ~ $hamper.name;
say "Items: " ~ $hamper.items;
- or download this
my $hamper = Hamper.new( items => ('Fish', 'Canoe') );
- or download this
method TWEAK(){
@!items = @item_defaults unless grep {$_}, @!items;
}