Utils.rb break-down?

Hi,

I am still new in programming but have now started to get a big
collection of common methods/functions in my utils.rb file. I think it
has grown so big that I want to start breaking it down, is there any
standards or common approach for this? How do you do? Is below a good
approach?

utils_name1.rb
utils_name2.rb
utils_name3.rb

Thanks for your help!
Regards
Mattias

Usually you’d break down your own methods by module, class, or whatever
logical divisions exist within the code.

maybe something like

utils.rb
-string/
–>string_helpers.rb
-uri/
–>uri_helpers.rb

utils.rb


require_relative ‘string/string_helpers’
require_relative ‘uri/uri_helpers’


string_helpers.rb


module StringHelpers
#methods
end


uri_helpers.rb


module UriHelpers
#methods
end


Thanks Joel for your reply!!

Wishing you a happy new year