Sha256: a5ef020926cffade548cfafcccb5a59922158619af16c285c221aef643c62993
Contents?: true
Size: 177 Bytes
Versions: 54
Compression:
Stored size: 177 Bytes
Contents
class String def underscore self.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_"). downcase end end
Version data entries
54 entries across 51 versions & 11 rubygems