Sha256: 9afd4f198ecae227eebdc84233a05e21d6e1962b8eacf8347b5b0ab150d88a8f
Contents?: true
Size: 221 Bytes
Versions: 2
Compression:
Stored size: 221 Bytes
Contents
# add an underscore method to String, so we can easily convert CamelCase to # camel_case for CacheSetting and RequestSetting objects. class String def underscore gsub(/([^A-Z])([A-Z]+)/, '\1_\2').downcase end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastly-1.1.1 | lib/fastly/string.rb |
fastly-1.1.0 | lib/fastly/string.rb |