Class: Tracklist

Inherits:
Object
  • Object
show all
Includes:
Moses
Defined in:
lib/tracklist.rb

Instance Method Summary collapse

Instance Method Details

#create_tracklistObject



10
11
12
13
14
15
16
17
18
# File 'lib/tracklist.rb', line 10

def create_tracklist
  output.puts "You need to specify an nml file to parse" unless @args.first
  @nml_file = File.expand_path(@args.first)
  if @args.first && File.exist?(@nml_file)
    output.puts parse_nml_file
  else
    output.puts "#{@nml_file} is not a valid file"
  end
end