Sha256: bfd5c9de7c5d117378b17467cb9b1a8b457d0b71baa33bb2cf56469c26631ef0
Contents?: true
Size: 192 Bytes
Versions: 18
Compression:
Stored size: 192 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
18 entries across 18 versions & 2 rubygems