Class: Java::DeFelixbrunsJotifyMedia::PlaylistContainer

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/jotify/media.rb

Instance Method Summary collapse

Instance Method Details

#<<(pl) ⇒ Object



64
65
66
# File 'lib/jotify/media.rb', line 64

def <<(pl)
  playlists.add(pl) if pl.is_a?(Playlist)
end

#each(&block) ⇒ Object



58
59
60
# File 'lib/jotify/media.rb', line 58

def each(&block) 
  playlists.each(&block) 
end

#sizeObject



62
# File 'lib/jotify/media.rb', line 62

def size() playlists.size end