Sha256: 3a9fa9e3c94cbe245455280b1e16a65167a29914aa18ff9ee355166077c20c6b
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
class Regexp module Examples def examples regexp_string = self.inspect[1..-2] partial_examples = RegexpExamples::Parser.new(regexp_string) .parse .map {|repeater| repeater.result} full_examples = RegexpExamples::permutations_of_strings(partial_examples) full_examples.map{ |full_example| RegexpExamples::BackReferenceReplacer.new.substitute_backreferences(full_example)} full_examples end end include Examples end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
regexp-examples-0.0.0 | lib/regexp-examples/regexp_extensions.rb |