lib/anyplayer/selector.rb
# Returns an instance of the first music player that's launched
Returns an instance of the first music player that's launched
Returns an instance of the first music player that ' s launched
def player
      PLAYERS.each do |player|
        player_load(player) || next
        instance = player_class(player).new
        player_on_platform?(instance) || next
        return instance if player_launched?(instance)
      end
      nil
    end
def player PLAYERS . each do | player | player_load ( player ) || next instance = player_class ( player ) . new player_on_platform? ( instance ) || next return instance if player_launched? ( instance ) end nil end
Returns an instance of the first music player that's launched
Returns an instance of the first music player that ' s launched