Created
October 20, 2018 14:59
-
-
Save SrdjanCoric/610887250879d4e5eafd68a39867de6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def spin_me(str) | |
str.split.each do |word| | |
word.reverse! | |
end.join(" ") | |
end | |
spin_me("hello world") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment