Ruby - String Operations
Which of the following is the correct syntax to remove spaces from the start and end of a string
str in Ruby?str in Ruby?strip, called on the string object.str.strip(). There is no trim method in Ruby.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions