lib/regexp-examples/regexp_extensions.rb in regexp-examples-0.3.2 vs lib/regexp-examples/regexp_extensions.rb in regexp-examples-0.4.0

- old
+ new

@@ -1,9 +1,9 @@ class Regexp module Examples - def examples - full_examples = RegexpExamples::map_results( - RegexpExamples::Parser.new(source).parse + def examples(options={}) + full_examples = RegexpExamples.map_results( + RegexpExamples::Parser.new(source, options).parse ) RegexpExamples::BackReferenceReplacer.new.substitute_backreferences(full_examples) end end include Examples