diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-09 07:45:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-09 07:45:22 +0000 |
commit | 0a2c2084eaca34fb869ee338315e91cbf809212f (patch) | |
tree | 402631a9bdfb47ef8c9b67804331191bac44f38c /lib/dtas/tracklist.rb | |
parent | 137e36e346a4641850183684ab136fe781af121a (diff) | |
download | dtas-0a2c2084eaca34fb869ee338315e91cbf809212f.tar.gz |
tracklist: next_track -> advance_track
This is a more accurate depiction of what happens, and we'll implement "next" and "previous" commands in the future.
Diffstat (limited to 'lib/dtas/tracklist.rb')
-rw-r--r-- | lib/dtas/tracklist.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/tracklist.rb b/lib/dtas/tracklist.rb index a51db32..e0b00cb 100644 --- a/lib/dtas/tracklist.rb +++ b/lib/dtas/tracklist.rb @@ -65,7 +65,7 @@ class DTAS::Tracklist @list.map { |t| t.object_id } end - def next_track(repeat_ok = true) + def advance_track(repeat_ok = true) return if @list.empty? next_pos = @goto_pos || @pos + 1 @goto_pos = nil |