Sha256: 8dd3ce4b24552d93d00bc721c0d6cdb929b368521d481526c905f6df8f7962ac

Contents?: true

Size: 472 Bytes

Versions: 183

Compression:

Stored size: 472 Bytes

Contents

function Player() {
}
Player.prototype.play = function(song) {
  this.currentlyPlayingSong = song;
  this.isPlaying = true;
};

Player.prototype.pause = function() {
  this.isPlaying = false;
};

Player.prototype.resume = function() {
  if (this.isPlaying) {
    throw new Error("song is already playing");
  }

  this.isPlaying = true;
};

Player.prototype.makeFavorite = function() {
  this.currentlyPlayingSong.persistFavoriteStatus(true);
};

module.exports = Player;

Version data entries

183 entries across 167 versions & 7 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/lib/jasmine-core/example/node_example/src/Player.js
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.99.0 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.10.1 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.10.0 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.9.0 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.8.0 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/jasmine-core-2.99.2/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
jasmine-core-3.7.1 ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js