Class: Tracklist
Instance Method Summary collapse
Instance Method Details
#create_tracklist ⇒ Object
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.(@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 |