"Circular require considered harmful"

Leam Hall <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <[email protected]>
Trying to figure out how to resolve this error:

/usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59: 
warning: 
/usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:59: 
warning: loading in progress, circular require considered harmful

This is the file it is referencing:

https://github.com/makhidkarun/ftl_chargen/blob/master/lib/ftl_chargen.rb

How do I resolve the errors? Should only some files require the 
ftl_chargen.rb file for loading?

Thanks!

Leam

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.