Class: JsRegex::Conversion
- Inherits:
-
Object
- Object
- JsRegex::Conversion
- Defined in:
- lib/js_regex/conversion.rb
Overview
This class acts as a facade, passing a regex to the converters.
::of returns a source String, options String, and warnings Array.
Class Method Summary collapse
Class Method Details
.of(input, options: nil) ⇒ Object
15 16 17 18 19 |
# File 'lib/js_regex/conversion.rb', line 15 def of(input, options: nil) source, warnings = convert_source(input) = (input, ) [source, , warnings] end |