module JsRegex::Converter

Constants

MAP

Public Class Methods

convert(exp, context = nil) click to toggle source
# File lib/js_regex/converter.rb, line 25
def convert(exp, context = nil)
  self.for(exp).convert(exp, context || Context.new)
end
for(expression) click to toggle source
# File lib/js_regex/converter.rb, line 29
def for(expression)
  MAP[expression.type].new
end
surrogate_pair_limit=(_arg) click to toggle source

Legacy method. Remove in v4.0.0.

# File lib/js_regex/converter.rb, line 34
def surrogate_pair_limit=(_arg)
  warn '#surrogate_pair_limit= is deprecated and has no effect anymore.'
end