class PM::SortedSongList
Public Instance Methods
<<(song)
click to toggle source
Calls superclass method
PM::SongList#<<
# File lib/patchmaster/sorted_song_list.rb, line 5 def <<(song) next_song_after = @songs.detect { |s| s.name > song.name } if next_song_after @songs.insert(@songs.index(next_song_after), song) else super(song) end end