Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- encode_string = String.new ''
- @text_parts.each do |str|
- @temp = String.new ''
- 0.upto(@square.size - 1) do |i|
- str2 = str[@square[i]-1]
- if (str2.nil?)
- str2 = '_'
- end
- @temp.concat(str2)
- end
- encode_string.concat @temp
- end
Add Comment
Please, Sign In to add comment