Class: String

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

Instance Method Summary collapse

Instance Method Details

#my_titleizeObject



2
3
4
# File 'lib/bolognese/string.rb', line 2

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