mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-18 03:45:04 +00:00
Add Perl 5 implementation
This commit is contained in:
1 parent
4967a5606d
commit
0a772512de
3 files changed
+108
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package Item;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
sub new {
|
||||
my ( $class, %attrs ) = @_;
|
||||
return bless \%attrs, $class;
|
||||
}
|
||||
|
||||
sub _data_printer { ## no critic (ProhibitUnusedPrivateSubroutines)
|
||||
my ( $self, $properties ) = @_;
|
||||
return $self->{name} . ', ' . $self->{sell_in} . ', ' . $self->{quality};
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in new issue
Block a user