Ruby Programming Language Question:

Explain the use of global variable $ in Ruby?

Answer:

If you declare one variable as global we can access any where, where as class variable visibility only in the class

Read All 26 Ruby Questions
Previous QuestionNext Question
What is the use of load and require in ruby?Explain the difference between nil and false in ruby?