Sha256: b16cf2686ad4f5e5fdd0bc4030c3ef76f66eb1cdda2484d6a8da4927467da283
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
module CoreExtensions module Regexp module Examples def examples(options={}) full_examples = RegexpExamples.map_results( RegexpExamples::Parser.new(source, options).parse ) RegexpExamples::BackReferenceReplacer.new.substitute_backreferences(full_examples) end end end end # Regexp#include is private for ruby 2.0 and below Regexp.send(:include, CoreExtensions::Regexp::Examples)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
regexp-examples-0.4.2 | lib/regexp-examples/core_extensions/regexp/examples.rb |
regexp-examples-0.4.1 | lib/regexp-examples/core_extensions/regexp/examples.rb |