Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active August 10, 2018 10:06
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 YumaInaura/6e481553c31f997ac4ba531d59aac224 to your computer and use it in GitHub Desktop.
Save YumaInaura/6e481553c31f997ac4ba531d59aac224 to your computer and use it in GitHub Desktop.
Ruby—Print horizon line by string multiplication

Ruby—Print horizon line by string multiplication

Ruby can multiply string concatenation.

Don’t you feel Rubythm in this code?

puts '=' * 50  # ==================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment