method

to_s

v1_9_1_378 - Show latest stable - Class: Encoding
to_s()
public

Returns the name of the encoding.

Encoding::UTF_8.name       => "UTF-8"