How can I access a variable defined in a Ruby file I required in IRB?
While it is true that you cannot access local variables defined in required files, you can access constants, and you can access anything stored in an object that you have access to in both contexts. So, there are a few ways to share information, depending on your goals. The most common solution is probably to … Read more