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