Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/regexp_extensions.rb

Overview

From ruby_parser 3.x to fix warnings under ruby_parser 2.x

ruby2ruby sets some constants, but not ONCE. ruby_parser 2.x checks for ONCE and then causes duplicate definitions of ENC_*.

Constant Summary collapse

ONCE =
0
ENC_NONE =
/x/n.options
ENC_EUC =
/x/e.options
ENC_SJIS =
/x/s.options
ENC_UTF8 =
/x/u.options