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