I want to find the successor of each element in my encoded string. For example K->M A->C etc.
string.each_char do |ch|
dummy_string<< ch.succ.succ
end
However this method translates y->aa.
Is there a method in Ruby that is like maketrans() in Python?