Module: Ruby3BackwardCompatibility::RegexpCompatibility

Defined in:
lib/ruby3_backward_compatibility/compatibility/regexp.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

LEGITIMATE_FLAGS =
/\A[mix]+\z/

Class Method Summary collapse

Class Method Details

.prepended(by) ⇒ Object



9
10
11
# File 'lib/ruby3_backward_compatibility/compatibility/regexp.rb', line 9

def self.prepended(by)
  by.singleton_class.prepend ClassMethods
end