lib/support/string.rb
def snake_case
        n= if split('::').first == Database.namespace.to_s
           split('::')[1..-1].join
         else
           split("::").join
         end
       n.gsub(/([^\^])([A-Z])/,'\1_\2').downcase
      end
#modified version of
# https://stackoverflow.com/questions/63769351/convert-string-to-camel-case-in-ruby
# returns an Array [ Namespace(first character upcase)  , Type(class, camelcase) ]
#
#  if the namespace is not found, joins all string-parts


if the namespace is not found, joins all string-parts
if the namespace is not found joins all string - parts
def snake_case
        n= if split('::').first == Database.namespace.to_s
           split('::')[1..-1].join
         else
           split("::").join
         end
       n.gsub(/([^\^])([A-Z])/,'\1_\2').downcase
      end
def snake_case n = if split ( '::' ) . first == Database . namespace . to_s split ( '::' ) [ 1 .. - 1 ] . join else split ( "::" ) . join end n . gsub ( / ([^ \^ ])([A-Z]) / , '\1_\2' ) . downcase end
modified version of
https://stackoverflow.com/questions/63769351/convert-string-to-camel-case-in-ruby
returns an Array [ Namespace(first character upcase)  , Type(class, camelcase) ]
modified version of https : // stackoverflow . com / questions / 63769351 / convert - string - to - camel - case - in - ruby returns an Array [ Namespace ( first character upcase ) Type ( class camelcase ) ]