mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
12 lines
173 B
Raku
12 lines
173 B
Raku
use v6;
|
|
|
|
class Item {
|
|
has Str $.name;
|
|
has Int $.sell_in is rw = 0;
|
|
has Int $.quality is rw = 0;
|
|
|
|
method Str {
|
|
"{$!name}, {$!sell_in}, {$!quality}"
|
|
}
|
|
};
|