Sha256: 830e6e4799971ed049cbd8b767c985363b958f2d3d9841ac08a4c71bca84269e
Contents?: true
Size: 204 Bytes
Versions: 3
Compression:
Stored size: 204 Bytes
Contents
# Extensions to core Ruby. class String # Stolen-ish in parts from ActiveSupport::Inflector. def camelize self.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
documentcloud-cloud-crowd-0.0.1 | lib/cloud_crowd/core_ext.rb |
documentcloud-cloud-crowd-0.0.2 | lib/cloud_crowd/core_ext.rb |
documentcloud-cloud-crowd-0.0.3 | lib/cloud_crowd/core_ext.rb |