class String
Public Instance Methods
underscore()
click to toggle source
# File lib/ext/string.rb, line 2 def underscore self.scan(/[A-Z][a-z]*/).join("_").downcase end
# File lib/ext/string.rb, line 2 def underscore self.scan(/[A-Z][a-z]*/).join("_").downcase end