capitalize메소드는 첫번째 문자열값을 대문자로 바꿔주는 메소드
사용예)
str = "twice"
puts str.capitalize # Twice
capitalize메소드를 안쓰면 이런식으로 코드가 지저분해짐
str = "twice"
puts str[0].upcase + str[1..str.length].downcase
reference:
https://docs.ruby-lang.org/ja/latest/method/Object/i/public_send.html
https://qiita.com/okuramasafumi/items/178006b9adb17a96cea8