lib/train-rest/auth_handler.rb
def convert_to_snake_case(str)
          str = str.dup
          str.gsub!(/[A-Z]/) { |s| "_" + s }
          str.downcase!
          str.sub!(/^\_/, "")
          str
        end
# Convert a class name to snake case.
#
# @param [String] Class name
# @return [String]
# @see https://github.com/chef/chef/blob/main/lib/chef/mixin/convert_to_class_name.rb
Convert a class name to snake case.
Convert a class name to snake case .
def convert_to_snake_case(str)
          str = str.dup
          str.gsub!(/[A-Z]/) { |s| "_" + s }
          str.downcase!
          str.sub!(/^\_/, "")
          str
        end
def convert_to_snake_case ( str ) str = str . dup str . gsub! ( / [A-Z] / ) { | s | "_" + s } str . downcase! str . sub! ( / ^ \_ / , "" ) str end
Convert a class name to snake case.
Convert a class name to snake case .
None
String
str
None
see
None