0 votes
in Ruby by
What is the use of global variable $ in Ruby?

1 Answer

0 votes
by

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.

...