Sha256: 764fafea3996bee6e922d4b75576fbdabd2e0d2fa757edce4133369b1a252b15

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

module CoreExtensions
  module Regexp
    module Examples
      def examples(config_options={})
        full_examples = RegexpExamples.map_results(
          RegexpExamples::Parser.new(source, options, config_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

10 entries across 10 versions & 1 rubygems

Version Path
regexp-examples-1.0.2 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-1.0.1 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-1.0.0 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.7.0 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.6.0 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.5.4 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.5.3 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.5.2 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.5.1 lib/regexp-examples/core_extensions/regexp/examples.rb
regexp-examples-0.5.0 lib/regexp-examples/core_extensions/regexp/examples.rb