Sha256: 8cc74aee516df68551a38f164fb0e8b43125b5614d9b2a725db49eba8e782cb9

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1321457843.8857951°Þ:@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"%5a213c158b3cc0dfaef96e9a499c1b36

Version data entries

3 entries across 3 versions & 1 rubygems

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