Method: Sh::Playlist#initialize
- Defined in:
- lib/sh_playlist.rb
#initialize(name) ⇒ Playlist
Returns a new instance of Playlist.
5 6 7 8 |
# File 'lib/sh_playlist.rb', line 5 def initialize name @name = name @songs = [] end |
Returns a new instance of Playlist.
5 6 7 8 |
# File 'lib/sh_playlist.rb', line 5 def initialize name @name = name @songs = [] end |