Sha256: a2a9bd9c5da250c70359768042ba40fd0420758102e5ab831b00ffad6199c627
Contents?: true
Size: 243 Bytes
Versions: 47
Compression:
Stored size: 243 Bytes
Contents
class Object # active_support/inflector.rb def underscore(camel_cased_word) camel_cased_word.to_s.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
47 entries across 47 versions & 2 rubygems