Sha256: 098ba8d01cacd38636231e962f27482fcdcb46e3f5499fc2980435c9c526579f
Contents?: true
Size: 264 Bytes
Versions: 31
Compression:
Stored size: 264 Bytes
Contents
module Hubspot module Helpers class SnakeCase def format(string) string.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_"). downcase end end end end
Version data entries
31 entries across 31 versions & 1 rubygems