Sha256: f599cffd6f78efefd36594c5b536523694d7d1fbe2062941e2bd15f050243c1f
Contents?: true
Size: 1005 Bytes
Versions: 11
Compression:
Stored size: 1005 Bytes
Contents
I"á(function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; App.Validators.Format = (function(superClass) { extend(Format, superClass); function Format() { Format.__super__.constructor.apply(this, arguments); } Format.prototype.validate = function() { var match; match = this.opts["with"].exec(this.val); if (match != null) { return true; } this._addErrorMessage(); return false; }; Format.prototype._addErrorMessage = function() { var message; message = "is invalid"; return this.obj.addErrorMessage(message, { "for": this.attr }); }; return Format; })(App.Validators.Base); }).call(this); :ET
Version data entries
11 entries across 4 versions & 1 rubygems