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