Question: I declared a variable in the global scope, but I cannot access it from a method.
Answer: Ruby's idea of the "global scope" is a bit different than in other languages. Declaring variables in the global scope might not mean what you think it means.
Comments
No comments yet. Leave a Comment
