ruby method .tr code example Example: .tr in ruby # if wana transform a to n, b to m, c to o messages.map { |c| c.tr("a-z", "n-za-m") }