ruby .tr method 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") }