Question - What Is The Use Of Global Variable $ In Ruby?
Answer -
The global variable is declared in Ruby that you can access it anywhere within the application because it has full scope in the application. The global variables are used in Ruby with $ prepend.