Class FilesInDir
In: mkcddb/mkcddb.rb
Parent: Object
Methods
new   
Attributes
:dartist  [R] 
:dir  [R] 
:discid  [R] 
:dsecs  [R] 
:dtitle  [R] 
:files  [R] 
Public Class methods
new(dir)
# File mkcddb/mkcddb.rb, line 86
  def initialize(dir)
    @dir = dir
    dirb = File.basename(dir)
    dirbb = File.basename(File.dirname(dir))
    @dartist = dirb.split(/_+/).map { |s| s.tr("_"," ").capitalize }.join(" ")
    @dtitle = dirbb.split(/_+/).map { |s| s.tr("_"," ").capitalize }.join(" ")
    @files = FInfo.new.readdir(@dir)
    totsecs = 0
    @files.each_value { |file| totsecs += file.length.secs }
    @dsecs = totsecs
    @discid = cddb_discid(self)
  end