use full_path
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 28 Dec 2010 16:49:48 +0000 (17:49 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 28 Dec 2010 16:49:48 +0000 (17:49 +0100)
lib/MojoFacets/Import/CSV.pm

index c89ac8e..d879169 100644 (file)
@@ -9,8 +9,7 @@ use File::Slurp;
 use Data::Dump qw(dump);
 use Encode;
 
-__PACKAGE__->attr('path');
-__PACKAGE__->attr('full_path'); # FIXME remove full_path
+__PACKAGE__->attr('full_path');
 
 my $null = ''; # FIXME undef?
 
@@ -42,7 +41,7 @@ sub _split_line {
 sub data {
        my $self = shift;
 
-       my $path = $self->full_path || $self->path;
+       my $path = $self->full_path;
 
        my $data = read_file $path, { binmode => ':raw' }; # FIXME configurable!
        my $encoding = 'utf-8';