Public feed #529372

Someone

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

proper_name_casing "bUCky o'shEa"