Sha256: a5f7ecc41e76208718781d8fecd0852a25838c1980fa108b022e5534f4390c88
Contents?: true
Size: 397 Bytes
Versions: 132
Compression:
Stored size: 397 Bytes
Contents
/** @constructor */ function Article() { } Article.prototype = { /** @constructor */ Title: function(title) { /** the value of the Title instance */ this.title = title; }, init: function(pages) { /** the value of the pages of the Article instance */ this.pages = pages; } } f = new Article(); f.init("one two three"); t = new f.Title("my title"); print(f.pages); print(t.title);
Version data entries
132 entries across 131 versions & 14 rubygems