core/src/main/java/org/jruby/RubyRegexp.java
public static RubyRegexp newRegexp(Ruby runtime, ByteList pattern, RegexpOptions options) {
        try {
            return new RubyRegexp(runtime, pattern, options.clone());
        } catch (RaiseException re) {
            throw runtime.newSyntaxError(re.getMessage());
        }
    }
// used only by the compiler/interpreter (will set the literal flag)
used only by the compiler/interpreter (will set the literal flag)
used only by the compiler / interpreter ( will set the literal flag )
public static RubyRegexp newRegexp(Ruby runtime, ByteList pattern, RegexpOptions options) {
        try {
            return new RubyRegexp(runtime, pattern, options.clone());
        } catch (RaiseException re) {
            throw runtime.newSyntaxError(re.getMessage());
        }
    }
public static RubyRegexp newRegexp ( Ruby runtime , ByteList pattern , RegexpOptions options ) { try { return new RubyRegexp ( runtime , pattern , options . clone ( ) ) ; } catch ( RaiseException re ) { throw runtime . newSyntaxError ( re . getMessage ( ) ) ; } }
used only by the compiler/interpreter (will set the literal flag)
used only by the compiler / interpreter ( will set the literal flag )