Module: CultomePlayer::Player::Playlist

Included in:
CultomePlayer::Player
Defined in:
lib/cultome_player/player/playlist.rb

Defined Under Namespace

Classes: Playlists

Instance Method Summary collapse

Instance Method Details

#playlist?(name) ⇒ Boolean

Check if a playlist is registered.

Parameters:

  • name (Symbol)

    The name of the new playlist.

Returns:

  • (Boolean)

    True if previously registered, False otherwise.



13
14
15
# File 'lib/cultome_player/player/playlist.rb', line 13

def playlist?(name)
  playlists.registered?(name)
end

#playlistsPlaylists

Lazy getter for playlists.

Returns:

  • (Playlists)

    The playlists handled by the system.



8
9
10
# File 'lib/cultome_player/player/playlist.rb', line 8

def playlists
  @playlists ||= Playlists.new
end