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...


What is the scope of a local variable in ruby?



What is the scope of a local variable in ruby?..

Answer / Deepika Sengar

In Ruby, local variables have block scope. This means they are accessible within the same method or block they were defined unless explicitly declared as global (using $ before variable name).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

what is the difference between a gem and a plugin in Ruby?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


Explain class libraries in ruby.

1 Answers  


Explain raise statement in Ruby?

1 Answers  


What is rvm?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


how many ways you can create a concatenating string?

1 Answers  


What are the case statement in ruby?

1 Answers  


What does mri most commonly stand for?

1 Answers  


Explain ampersand parameter (&block) in Ruby?

1 Answers  


What are the looping structures available in ruby?

1 Answers  


What is the difference between calling super and calling super()?

1 Answers  


Categories