Sha256: 04d38b317c5246a2d406715c5dd215ec7bf63776392a029bcf6d3477cea9b13a

Contents?: true

Size: 352 Bytes

Versions: 34

Compression:

Stored size: 352 Bytes

Contents

Object.extend(String.prototype, {
  upcase: function() {
    return this.toUpperCase();
  },

  downcase: function() {
    return this.toLowerCase();
  },
  
  toInteger: function() {
    return parseInt(this);
  },
  
  toSlug: function() {
    return this.strip().downcase().replace(/[^-a-z0-9~\s\.:;+=_]/g, '').replace(/[\s\.:;=+]+/g, '-');
  }
});

Version data entries

34 entries across 34 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 public/javascripts/string.js
radiantcms-couchrest_model-0.2.2 public/javascripts/string.js
radiantcms-couchrest_model-0.2.1 public/javascripts/string.js
radiantcms-couchrest_model-0.2 public/javascripts/string.js
radiantcms-couchrest_model-0.1.9 public/javascripts/string.js
radiantcms-couchrest_model-0.1.8 public/javascripts/string.js
radiantcms-couchrest_model-0.1.7 public/javascripts/string.js
radiantcms-couchrest_model-0.1.6 public/javascripts/string.js
radiantcms-couchrest_model-0.1.5 public/javascripts/string.js
radiant-0.7.2 public/javascripts/string.js
radiant-0.8.2 public/javascripts/string.js
radiant-0.8.1 public/javascripts/string.js
metry-2.0.4 radiant/example/public/javascripts/string.js
metry-2.0.5 radiant/example/public/javascripts/string.js
metry-2.1.0 radiant/example/public/javascripts/string.js
metry-2.1.1 radiant/example/public/javascripts/string.js
metry-2.0.0 radiant/example/public/javascripts/string.js
metry-2.0.1 radiant/example/public/javascripts/string.js
metry-2.0.2 radiant/example/public/javascripts/string.js
metry-2.0.3 radiant/example/public/javascripts/string.js