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


How would you freeze an object in ruby?



How would you freeze an object in ruby?..

Answer / Rewti Raman Singh

To freeze an object in Ruby, you use the Object#freeze method. Once frozen, the object cannot be modified, and attempts to modify it will result in a RuntimeError.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me how symbol is different from variables?

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


How can you removed from array in ruby?

1 Answers  


How an exception is handled in Ruby?

1 Answers  


Explain ruby class.

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


How is an iterator handled in ruby?

1 Answers  


Difference between render and redirect?

1 Answers  


How would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


How to open a file in Ruby?

1 Answers  


Categories