Sha256: 91102a588725dc6447ecbad419fca9c31849ab8353fd19ad060747cd59a77671
Contents?: true
Size: 219 Bytes
Versions: 13
Compression:
Stored size: 219 Bytes
Contents
class String def lower_camelcase str = dup str.gsub!(/\/(.?)/) { "::#{$1.upcase}" } str.gsub!(/(?:_+|-+)([a-z]|[0-9])/) { $1.upcase } str.gsub!(/(\A|\s)([A-Z])/) { $1 + $2.downcase } str end end
Version data entries
13 entries across 13 versions & 1 rubygems