Module: WireMockMapper::Builders::Helpers

Defined in:
lib/builders/helpers.rb

Class Method Summary collapse

Class Method Details

.regexp_to_string(regexp) ⇒ Object



4
5
6
# File 'lib/builders/helpers.rb', line 4

def self.regexp_to_string(regexp)
  %r{^/(.*)/$}.match(regexp.inspect)[1]
end