Sha256: adbc5ad6ccdf3794074377ea6328ceafe82332afbedd3867bbf47c5649dc3b07
Contents?: true
Size: 195 Bytes
Versions: 2
Compression:
Stored size: 195 Bytes
Contents
function buildModel(attrs) { var Model = function(obj) { this.obj = obj; }; Model.prototype = { get: function(k) { return this.obj[k]; } }; return new Model(attrs); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ponytail-0.4.0 | spec/javascripts/helpers/build_model.js |
ponytail-0.3.0 | spec/javascripts/helpers/build_model.js |