module Cucumber::Messages::Message::Utils::ClassMethods

def camelize(term)

#
https://github.com/rails/rails/blob/v6.1.3.2/activesupport/lib/active_support/inflector/methods.rb#L69
This is a simplified version of the Ruby on Rails implementation

camelize('gherkin_document') # => "GherkinDocument"

Converts strings to UpperCamelCase.
#
def camelize(term)
  camelized = term.to_s
  camelized.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
  camelized
end