Module: WireMockMapper::Builders::Helpers

Defined in:
lib/builders/helpers.rb

Class Method Summary collapse

Class Method Details

.regexp_to_string(regexp) ⇒ Object



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

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