Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/butterfly/core/string.rb
Instance Method Summary collapse
Instance Method Details
#camel_case ⇒ Object
2 3 4 |
# File 'lib/butterfly/core/string.rb', line 2 def camel_case gsub(/(^|_|-)(.)/) { $2.upcase } end |