Module: ExtString
- Defined in:
- lib/ext.rb
Instance Method Summary collapse
Instance Method Details
#snake_case ⇒ Object
2 3 4 |
# File 'lib/ext.rb', line 2 def snake_case gsub(/\B[A-Z]/, '_\&').downcase end |
2 3 4 |
# File 'lib/ext.rb', line 2 def snake_case gsub(/\B[A-Z]/, '_\&').downcase end |