method

encoding

ruby latest stable - Class: Regexp
encoding()
public

Returns the Encoding object that represents the encoding of obj.