Sha256: 7260621bb36f6d6312a6f89f4518519399c699f0f6b2e0accb2cae299b8b2426

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1322611695.2568572pY:@value{	I"length:EFixI"digest;
F"%e1f2b075304d469c58522be53ec8dad4I"source;
FI"x
  window.isNumber = function(n) {
    return !isNaN(parseFloat(n)) && isFinite(n);
  };

  String.prototype.capitalize = function() {
    return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();
  };

  String.prototype.titleize = function() {
    var parts, res;
    res = [];
    parts = this.split(" ");
    $.each(parts, function(index, part) {
      return res.push(part.capitalize());
    });
    return res.join(" ");
  };

  Handlebars.registerHelper("rounded", function(number) {
    if (isNumber(number)) return parseFloat(number).toFixed(2);
  });

  Handlebars.registerHelper("titleize", function(string) {
    if (string !== void 0) return string.titleize();
  });

  Handlebars.registerHelper("address_without_comma", function(lab) {
    if (!(this.data && this.data.address)) return;
    return this.data.address.replace(/(\s*,\s*$)/g, "").titleize();
  });
;
FI"
_version;
F"%7b4a4ee6afce1e945ed1e0b05d19a3fd

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
medivo-0.2.24 spec/dummy/tmp/cache/assets/D9F/260/sprockets%2Fa3e040f83c30e4bbc1c79ffae57909e6