Sha256: 023dc1fedf8e4b88de28335c41d13a5894ce96c5baba0339d50a25efeab055ea
Contents?: true
Size: 273 Bytes
Versions: 71
Compression:
Stored size: 273 Bytes
Contents
/** @constructor */ function Article() { } Article.prototype.init = function(title) { /** the instance title */ this.title = title; /** the static counter */ Article.counter = 1; } a = new Article(); a.Init("my title"); print(a.title); print(Article.counter);
Version data entries
71 entries across 71 versions & 2 rubygems