class String

Public Instance Methods

titleize() click to toggle source
# File xml.rb, line 4
def titleize
  gsub(/\b('?[a-z])/) { $1.capitalize }
end