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

- old
+ new

@@ -1,12 +1,10 @@ class Regexp module Examples def examples - partial_examples = - RegexpExamples::Parser.new(source) - .parse - .map {|repeater| repeater.result} - full_examples = RegexpExamples::permutations_of_strings(partial_examples) + full_examples = RegexpExamples::map_results( + RegexpExamples::Parser.new(source).parse + ) RegexpExamples::BackReferenceReplacer.new.substitute_backreferences(full_examples) end end include Examples end