Created
May 6, 2016 17:41
-
-
Save ir-norn/c7bb2a0350085449e4b4c7ed2ec38fd0 to your computer and use it in GitHub Desktop.
----*
This file contains 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
s = "----*".split(//) | |
b = [] | |
s.size.times do | |
b << s.join.reverse[0..-2] + s.join + "\n" | |
s.rotate! | |
end | |
puts b[0..-2] | |
puts b.reverse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment