Interchange characters in Ruby string


Hi friends, In ruby we can interchange characters in a string easily by using “.tr” methods this is a good useful method to perform some replace actions on strings. Returns a copy of str with the characters in from_str replaced by the corresponding characters in to_str. Here are few examples on this method: ‘This isContinue reading “Interchange characters in Ruby string”