Changeset 24 in flacrip for trunk/lib/Ripper.pm


Ignore:
Timestamp:
10/08/14 21:47:47 (10 years ago)
Author:
peter
Message:
  • converted Tracks from Class::Std to Moose
  • added a has_tracks() method to Tracks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Ripper.pm

    r23 r24  
    1212has tracks => (  
    1313    is => 'rw', 
    14     handles => [qw{read_disc get_tracks get_cuesheet}], 
     14    handles => [qw{read_disc has_tracks get_cuesheet}], 
    1515); 
    1616 
     
    2121    $self->read_disc($self->device); 
    2222 
    23     die "No tracks found; is there a CD in the drive?\n" unless @{ $self->get_tracks }; 
     23    die "No tracks found; is there a CD in the drive?\n" unless $self->has_tracks; 
    2424 
    2525    my $tempdir = tempdir(CLEANUP => 1); 
Note: See TracChangeset for help on using the changeset viewer.