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 def self.compile(source) regexp = Regexp.compile(source) expression = parse(regexp) Regexp.compile(expression.to_s(true), expression.flags) end
Parses Regexp and returns a Expression data structure.
# File lib/rack/mount/vendor/regin/regin.rb, line 62 def self.parse(regexp) Parser.parse_regexp(regexp) end
Generated with the Darkfish Rdoc Generator 2.