Sha256: 180d0e5ee99aa2dc3ea18fa667ff4310742d5e271a483b2a9d20ed49adbae7e1
Contents?: true
Size: 411 Bytes
Versions: 71
Compression:
Stored size: 411 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
71 entries across 71 versions & 2 rubygems