Sha256: 7f585deee8420240fbf6e1f16ff63f83aef99cc2515607e568763ac86750aa05
Contents?: true
Size: 362 Bytes
Versions: 23
Compression:
Stored size: 362 Bytes
Contents
function Player(){}Player.prototype.play=function(i){this.currentlyPlayingSong=i,this.isPlaying=!0},Player.prototype.pause=function(){this.isPlaying=!1},Player.prototype.resume=function(){if(this.isPlaying)throw new Error("song is already playing");this.isPlaying=!0},Player.prototype.makeFavorite=function(){this.currentlyPlayingSong.persistFavoriteStatus(!0)};
Version data entries
23 entries across 23 versions & 1 rubygems