Public feed #529361

Someone

public text v1 · immutable
Raw Edit
·published 2007-06-01 21:55 UTC
rendered paste body
def proper_name_casing(name)
  name.each_with_index do |l, i|
    l.upcase! if i = 0
    if l = " " or "'" or "-"
      upcase = true
      next
    end
    if upcase = true
      l.upcase!
      upcase = false
    end
  end
end

proper_name_casing "bUCky o'shEa"