Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/bolognese/string.rb

Instance Method Summary collapse

Instance Method Details

#my_titleizeObject



4
5
6
# File 'lib/bolognese/string.rb', line 4

def my_titleize
  self.gsub(/\b(['’]?[a-z])/) { "#{$1.capitalize}" }
end