Sha256: a735a421f155a7bea135b19b205329c2943d590b536715885246662c7a3ec4e5

Contents?: true

Size: 253 Bytes

Versions: 12

Compression:

Stored size: 253 Bytes

Contents

function Calculator(initialValue) {
  this.value = initialValue;
}

Calculator.prototype = {
  add: function(val) {
    this.value += val;
  },
  multiply: function(val) {
    this.value *= val;
  },
  sub: function(val) {
    this.value -= val;
  }
};

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
sayso-js-test-driver-rails-0.4.3.002 test/sample/lib/calculator.js
sayso-js-test-driver-rails-0.4.3.001 test/sample/lib/calculator.js
sayso-js-test-driver-rails-0.4.3 test/sample/lib/calculator.js
js-test-driver-rails-0.5.0.pre5 test/sample/lib/calculator.js
js-test-driver-rails-0.5.0.pre4 test/sample/lib/calculator.js
js-test-driver-rails-0.5.0.pre3 test/sample/lib/calculator.js
js-test-driver-rails-0.5.0.pre2 test/sample/lib/calculator.js
js-test-driver-rails-0.5.0.pre1 test/sample/lib/calculator.js
js-test-driver-rails-0.4.3 test/sample/lib/calculator.js
js-test-driver-rails-0.4.2 test/sample/lib/calculator.js
js-test-driver-rails-0.4.1 test/sample/lib/calculator.js
js-test-driver-rails-0.4.0 test/sample/lib/calculator.js