Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created July 26, 2013 16:29
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 jdelStrother/6090264 to your computer and use it in GitHub Desktop.
Save jdelStrother/6090264 to your computer and use it in GitHub Desktop.
x = "میثم آز ربنا"
words = x.split(" ")
crazy = words.map{|x| "-- #{x} ++"}
puts crazy.inspect
#=> ["-- میثم ++", "-- آز ++", "-- ربنا ++"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment