Recompiles Regexp by parsing it and turning it back into a Regexp.
(In the future Regin will perform some Regexp optimizations such as removing unnecessary captures and options)
# File lib/rack/mount/vendor/regin/regin.rb, line 70
70: def self.compile(source)
71: regexp = Regexp.compile(source)
72: expression = parse(regexp)
73: Regexp.compile(expression.to_s(true), expression.flags)
74: end
Parses Regexp and returns a Expression data structure.
# File lib/rack/mount/vendor/regin/regin.rb, line 62
62: def self.parse(regexp)
63: Parser.parse_regexp(regexp)
64: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.