Ruby 3 · Basics
Common string methods
Strings have many helpers.
" Hello World ".strip.downcase.split(" ").map(&:capitalize).join("-")
Ruby 3 · Basics
Strings have many helpers.
" Hello World ".strip.downcase.split(" ").map(&:capitalize).join("-")
Was this page helpful?