Guest User

Untitled

a guest
Jan 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. encode_string = String.new ''
  2. @text_parts.each do |str|
  3. @temp = String.new ''
  4. 0.upto(@square.size - 1) do |i|
  5. str2 = str[@square[i]-1]
  6. if (str2.nil?)
  7. str2 = '_'
  8. end
  9. @temp.concat(str2)
  10. end
  11. encode_string.concat @temp
  12. end
Add Comment
Please, Sign In to add comment