title: Struct visible only within a class/ code file ruby
body: <p>I want to use structs within my classes to save on memory, but I want my code to be easily used by others.<br>Say I want to use a new Struct, name it &quot;KE&quot;. I want this Struct to be only visible from within a class I, that would be use it. I.e., if anyone who uses my code defines elsewhere class/struct &quot;KE&quot;, it won't override my &quot;KE&quot;, and mine won't override theirs. Having it in the same code text file is good too.</p>