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


Ignore:
Timestamp:
11/05/14 01:06:55 (9 years ago)
Author:
peter
Message:
  • added types to the attributes in the Tracks and Ripper classes
  • removed get_cuesheet from the list of mathods handled by the Tracks class for the Ripper class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Ripper.pm

    r28 r29  
    99use File::Copy; 
    1010 
    11 has device => ( is => 'rw' ); 
     11has device => ( 
     12    is  => 'rw', 
     13    isa => 'Str', 
     14); 
    1215has tracks => (  
    13     is => 'rw', 
    14     handles => [qw{read_disc has_tracks get_cuesheet}], 
     16    is      => 'rw', 
     17    isa     => 'Tracks', 
     18    handles => [qw{read_disc has_tracks}], 
    1519); 
    1620 
     
    3640    # encode + cuesheet 
    3741    open my $CUE, "> $cue_file"; 
    38     print $CUE $self->get_cuesheet; 
     42    print $CUE $self->tracks->get_cuesheet; 
    3943    close $CUE; 
    4044    system 'flac', '-o', $flac_file, '--cuesheet', $cue_file, $wav_file; 
Note: See TracChangeset for help on using the changeset viewer.