Skip to content
instance method

Regexp#encoding

() -> ::Encoding
encoding → encoding

Returns an Encoding object that represents the encoding of self; see Encodings.

Related: see Querying.

See also #casefold? #eql? #as_json #fixed_encoding? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0