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.

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
+1 vote
asked Nov 15, 2021 in Ruby by Robin
...