Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#to_snake_case_sym ⇒ Object
2 3 4 |
# File 'lib/core_ext/string.rb', line 2 def to_snake_case_sym self.gsub(/(.)([A-Z])/, '\1_\2').downcase.to_sym end |