Sha256: e5ae659b1b5e1db585e27fa338130a373f02554bca3ae493e9c30ec2c5dbf130
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
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.dup, no_join: true) full_examples_with_backrefs = \ RegexpExamples::BackReferenceReplacer.new.substitute_backreferences(full_examples) full_examples_with_backrefs.map(&:join) end end include Examples end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
regexp-examples-0.0.2 | lib/regexp-examples/regexp_extensions.rb |
regexp-examples-0.0.1 | lib/regexp-examples/regexp_extensions.rb |