regexp-examples icon indicating copy to clipboard operation
regexp-examples copied to clipboard

Support for use without class extension

Open tom-lord opened this issue 7 years ago • 0 comments

It would be nice to offer an option to use this gem without actually adding methods to the Regexp class. Something along the lines of:

require 'regexp-examples/module'

RegexpExamples.examples(/.../)
RegexpExamples.random_example(/.../)

As opposed to the current, "default" behaviour:

require 'regexp-examples'

/.../.examples
/.../.random_example

tom-lord avatar Sep 11 '18 13:09 tom-lord