Method: Duby::Compiler::JavaSource#regexp

Defined in:
lib/duby/jvm/source_compiler.rb

#regexp(value, flags = 0) ⇒ Object



590
591
592
593
594
# File 'lib/duby/jvm/source_compiler.rb', line 590

def regexp(value, flags = 0)
  @method.print "java.util.regex.Pattern.compile("
  @method.print value.inspect
  @method.print ")"
end