Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/grooveshark/utils.rb
Overview
String class
Instance Method Summary collapse
Instance Method Details
#normalize_attribute ⇒ Object
3 4 5 6 7 8 |
# File 'lib/grooveshark/utils.rb', line 3 def normalize_attribute gsub(/^.*::/, '') .gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2') .gsub(/([a-z\d])([A-Z])/, '\1_\2') .downcase end |