method
replicate
ruby latest stable - Class:
Encoding
replicate(p1)public
Returns a replicated encoding of enc whose name is name. The new encoding should have the same byte structure of enc. If name is used by another encoding, raise ArgumentError.