Skip to content

Instantly share code, notes, and snippets.

@mistyrinth
Created November 14, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistyrinth/20f35bed067e8106aa3025ae166cbae9 to your computer and use it in GitHub Desktop.
Save mistyrinth/20f35bed067e8106aa3025ae166cbae9 to your computer and use it in GitHub Desktop.
count = 0
("1" .. "10").each{|str|
count += 1
if count % 3 == 0 then
redo
end
print(count," 回目の実行結果は ",str, " です\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment