lib/mpg321.rb in mpg321-0.0.3 vs lib/mpg321.rb in mpg321-0.0.4
- old
+ new
@@ -17,12 +17,11 @@
def stop
@music_input.puts "S"
end
- def play song_list
- songs = song_list.respond_to?(:join) ? song_list.join(' ') : song_list
- @music_input.puts "L #{songs}"
+ def play song
+ @music_input.puts "L #{song}"
end
def volume_up volume
@volume += volume
@volume = [@volume, 100].min