RosettaCodeData/Task/Reverse-a-string/Ruby/reverse-a-string-1.rb

3 lines
36 B
Ruby

str = "asdf"
reversed = str.reverse