class OasRails::Builders::ParameterBuilder

def extract_word_before(string, param)

def extract_word_before(string, param)
  regex = %r{/(\w+)/\{#{param}\}}
  match = string.match(regex)
  match ? match[1] : nil
end