Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain the use of global variable $ in Ruby?



Explain the use of global variable $ in Ruby?..

Answer / Robinder Singh Goyath

$ variables, also known as global variables, are used to store values accessible across all scopes within a Ruby program. They can be accessed without an explicit qualifier, making them easier to access but potentially leading to unintended conflicts and errors. It's generally recommended to avoid using global variables unless necessary.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is rvm?

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Do you know what is the defined operator?

1 Answers  


Explain about Class variable and global variable?

1 Answers  


Explain about ruby code blocks?

1 Answers  


Explain until loop in ruby.

1 Answers  


How many types of associations relationships does a model has?

1 Answers  


Explain Ruby hashes?

1 Answers  


What are the only two values that are falsy?

1 Answers  


Which ruby interpreter option enables debugging?

1 Answers  


Explain while loop in ruby.

1 Answers  


How is class methods defined in ruby?

1 Answers  


Categories